PHP 7.2 breaks project because of "Object" type-hint
bnock opened this issue · 2 comments
bnock commented
When running this library in a PHP 7.2 environment, it breaks because of the Object.php class located at namespace GitElephant\Objects\Object.php. As of PHP 7.2 there is an object type-hint, which breaks any classes names "Object".
I have 2 recommendations:
-
Patch the current release with an update to composer.json that restricts the PHP version to < 7.2.
-
Create a new release that changes the Object.php class name to something else and update all usages, then remove the php < 7.2 version constraint from composer.json.
MayMeow commented
Working on it at fork. When I finish can update this Project