
Fresh selection with links to news and materials. In the release: PHPUnit 8 and other releases, PSR-14 and PSR-12 in the review stage, JIT for PHP, work started on PHP 8, a pack of fresh RFCs from PHP Internals, a portion of useful tools, and much more.
Enjoy reading!
null returns. var_dump(strlen(new stdClass)); // Warning: strlen() expects parameter 1 to be string, object given // NULL declare(strict_types=1); var_dump(strlen(new stdClass)); // TypeError: strlen() expects parameter 1 to be string, object given WeakReference class to implement weak links, which will allow the developer to save the link to the object without preventing it from being deleted by the garbage collector. This can be especially useful for all sorts of caches.void in inheritor methods. Appeared in the wake of changing the signature of the setUp() method and several others in PHPUnit 8. class Foo { function method1 (): void {} function method2 () {} } class Bar extends Foo { function method1 (): array { return []; } function method2 (): array { return []; } } class Baz extends Foo { function method1 () { return 42; } function method2 () { return 42; } } mixed tag. This will indicate that the function can take (or return) values of different types.
Database serialization
Podcast from Taylor's Laravel Snippet # 4 and # 5
Videos Laracon EU 2018
Yii 2.0.16
Unobvious RabbitMQ in Yii2 or why RabbitMQ writes to all queues at once.hrtime() in PHP 7.3+.
Fast web scraping on ReactPHP # 3: Download images
Video Recording Onliner PHP Meetup # 3
PHP for beginners. Session
Composer for the smallest
What to read in PHP in Russian?
BotMan acquaintance
Interactor Pattern (Interactor, Operation)
Liveprof will show when and why the performance of your PHP application has changed.Thanks for attention!
If you notice an error or inaccuracy - please inform the PM .
Write questions and suggestions by mail or twitter .
More news and comments on the PHP Digest Telegram channel.
Send link
Search links for all digests
← Previous release: PHP Digest number 148
Source: https://habr.com/ru/post/439780/