You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On yii2 Version: 2.0.15.1 with php 7.2.8 it does crash with error:
PHP Compile Error – yii\base\ErrorException
Cannot use 'Object' as class name as it is reserved
To make it work change your BaseObject.php:
namespace lucidprogrammer\simplesamlphp;
use yii\base\BaseObject as Another;
if (class_exists('Another')) {
class MiddleManClass extends Another { }
} else {
- class MiddleManClass extends \yii\base\Object{ }
+ class MiddleManClass extends \yii\base\BaseObject{ }
}
Which actually makes me wonder why your class_exists('Another') workaround does not work properly ...
The text was updated successfully, but these errors were encountered:
On yii2 Version: 2.0.15.1 with php 7.2.8 it does crash with error:
To make it work change your BaseObject.php:
Which actually makes me wonder why your class_exists('Another') workaround does not work properly ...
The text was updated successfully, but these errors were encountered: