-
Notifications
You must be signed in to change notification settings - Fork 37
Object reserved keyword #14
Comments
@fntlnz It doesn't. The reason is because the namespace is not Do you have a specific example demonstrating breakage? |
@weierophinney The
|
|
So, what's the point? From: http://php.net/manual/en/reserved.other-reserved-words.php
|
As @weierophinney point the namespace is the whole string. PHP does not distinguish namespace parts. Probably Anyway if you found a better term for name the namespace we could consider start to use it in the next minor version (preserving the old namespace for BC) |
Hello @fntlnz :) We can start to use a new name ( and mark this class as deprecated in order to remove it during 3.0 release
|
Minimal fix in #36 |
Hi, we are also seeing this issue in PHP 7.2 PHP Fatal error: Cannot use Zend\Barcode\Object as Object because 'Object' is a special class name in www/vhosts/api.content-manager/src/PhysicalLookbook/Service/PdfGenerator.php on line 26 Line 26: Any help very welcome. Thks |
@dbarn |
Related to #37 |
Hi we are using 2.7 And then using This work ok. |
@dbarn I will reopen this issue, because the problem with |
This repository has been closed and moved to laminas/laminas-barcode; a new issue has been opened at laminas/laminas-barcode#1. |
The
object
keyword became reserved in PHP 7, this conflicts with theZend\Barcode\Object;
namespace.
http://php.net/manual/en/reserved.other-reserved-words.php
The text was updated successfully, but these errors were encountered: