{"id":834,"date":"2019-10-07T11:56:22","date_gmt":"2019-10-07T03:56:22","guid":{"rendered":"https:\/\/woohuiren.me\/blog\/?p=834"},"modified":"2019-10-07T12:24:55","modified_gmt":"2019-10-07T04:24:55","slug":"php-news-for-september-2019","status":"publish","type":"post","link":"https:\/\/woohuiren.me\/blog\/php-news-for-september-2019\/","title":{"rendered":"PHP News For September 2019"},"content":{"rendered":"\n<p>Here\u2019s a condensed list of things that happened in PHP world during September. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Change in error reporting<\/h2>\n\n\n\n<p>In PHP 8, &#8220;error_reporting=E_ALL&#8221; will be the new default. Currently, PHP uses &#8220;E_ALL &amp; ~E_NOTICE &#8221; for error reporting.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Laravel&nbsp;6 LTS released! <\/h2>\n\n\n\n<p>Great news for Laravel fans. Laravel 6 has been released. It now follows schematic versioning.  Also, this release includes compatibility with Laravel Vapor, improved  authorization responses, job middleware, lazy collections, sub-query improvements, among many other improvements. <\/p>\n\n\n\n<p>Lazy collections will be introduced in Laravel 6.1!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">RFC to reclassify current engine warnings<\/h2>\n\n\n\n<p>Nikita Popov <a href=\"https:\/\/wiki.php.net\/rfc\/engine_warnings\">proposed a RFC<\/a> for PHP 8.0 to reclassify current engine warnings. This reclassification is aimed at making the current error and warnings more defined. For example,  <code>Illegal offset type in unset<\/code>  is currently a  <code>Warning<\/code>. With the reclassification, it will be reclassified as a  <code>TypeError exception<\/code>. <\/p>\n\n\n\n<p>I think that this will help even more as PHP gets bigger. Clarity in engine warning allows users to write code that catch errors in a clearer manner.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">RFC for Union Types<\/h2>\n\n\n\n<p>Nikita  Popov  <a href=\"https:\/\/github.com\/php\/php-rfcs\/pull\/1\">proposed RFC<\/a> for Union Types (multiple types). This RFC proposes to allow our property types, parameters and returns will be able to handle multiple types. An example is shown below.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">public function setNumber(int|float $number): void|int {}\n\npublic int|float $number;<\/pre>\n\n\n\n<p>Please take note that the above are all encapsulated within a class.<\/p>\n\n\n\n<p>Personally, I think that this a good move as multiple types will give leeway to the current type system and allow us to express ourselves better.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">PHP 7.4.0RC2 is available for testing<\/h1>\n\n\n\n<p>PHP 7.4.0RC02&#8217;s release has been announced by Derick Rethans. The current list of changes for PHP 7.4 can be <a href=\"https:\/\/github.com\/php\/php-src\/blob\/PHP-7.4\/UPGRADING\">viewed on GitHub<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GitHub Dependency Graph<\/h2>\n\n\n\n<p>Microsoft has announced that they have introduced <a href=\"https:\/\/github.blog\/2019-09-18-dependency-graph-supports-php-repos-with-composer-dependencies\/\">PHP Dependency Graph<\/a> for their GitHub platform. Dependency graph was first introduced for JavaScript NPM packages. With this, GitHub users will be able to have a glance on the possible security issues announced for the composer packages they are using. There is also an opt-in available for their beta &#8220;automatic security fixes&#8221; which sends pull requests to update your <code>package.json<\/code> file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PHP UK Conference 2020<\/h2>\n\n\n\n<p>Their call for paper is ending on 15 October UTC! If you want to be a part of this amazing PHP conference, do submit your paper on their <a href=\"https:\/\/www.papercall.io\/phpuk2020\">papercall website<\/a>! <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>It has been an exciting month of September for PHP. If there\u2019s any big  things that I missed out, feel free to mention them in the comments  below! Do tell me how you feel about these news too!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here\u2019s a condensed list of things that happened in PHP world during September. Change in error reporting In PHP 8, &#8220;error_reporting=E_ALL&#8221; will be the new default. Currently, PHP uses &#8220;E_ALL &amp; ~E_NOTICE &#8221; for error reporting. Laravel&nbsp;6 LTS released! Great news for Laravel fans. Laravel 6 has been released. It now follows schematic versioning. Also, &hellip; <a href=\"https:\/\/woohuiren.me\/blog\/php-news-for-september-2019\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;PHP News For September 2019&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[2,4,5],"tags":[143,30,200],"class_list":["post-834","post","type-post","status-publish","format-standard","hentry","category-information-technology","category-it-softwares","category-programming","tag-laravel","tag-php","tag-php-news"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/woohuiren.me\/blog\/wp-json\/wp\/v2\/posts\/834"}],"collection":[{"href":"https:\/\/woohuiren.me\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/woohuiren.me\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/woohuiren.me\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/woohuiren.me\/blog\/wp-json\/wp\/v2\/comments?post=834"}],"version-history":[{"count":4,"href":"https:\/\/woohuiren.me\/blog\/wp-json\/wp\/v2\/posts\/834\/revisions"}],"predecessor-version":[{"id":839,"href":"https:\/\/woohuiren.me\/blog\/wp-json\/wp\/v2\/posts\/834\/revisions\/839"}],"wp:attachment":[{"href":"https:\/\/woohuiren.me\/blog\/wp-json\/wp\/v2\/media?parent=834"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/woohuiren.me\/blog\/wp-json\/wp\/v2\/categories?post=834"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/woohuiren.me\/blog\/wp-json\/wp\/v2\/tags?post=834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}