zendframework / zend-log

Log component from Zend Framework
BSD 3-Clause "New" or "Revised" License
62 stars 51 forks source link

'null' is a reserved keyword in PHP 7.0+ #85

Closed buskamuza closed 6 years ago

buskamuza commented 6 years ago
vendor/zendframework/zend-log/src/Writer/Null.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------------------
 22 | ERROR | 'null' is a reserved keyword as of PHP version 7.0 and should not be used to name a class, interface or trait or as part of a namespace (T_CLASS)
----------------------------------------------------------------------------------------------------------------------------------------------------------------

Generated using https://github.com/wimg/PHPCompatibility

samsonasik commented 6 years ago

The Null writer is deprecated, you can use Noop instead.

michalbundyra commented 6 years ago

@buskamuza

https://github.com/zendframework/zend-log/blob/master/src/Writer/Null.php#L12-L21