We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff66fdf commit 6bc3404Copy full SHA for 6bc3404
src/Console/ModelsCommand.php
@@ -1119,6 +1119,9 @@ protected function hasCamelCaseModelProperties()
1119
1120
protected function getAttributeReturnType(Model $model, \ReflectionMethod $reflectionMethod): Collection
1121
{
1122
+ // Private/protected ReflectionMethods require setAccessible prior to PHP 8.1
1123
+ $reflectionMethod->setAccessible(true);
1124
+
1125
/** @var Attribute $attribute */
1126
$attribute = $reflectionMethod->invoke($model);
1127
0 commit comments