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 f119ba6 commit 80d8864Copy full SHA for 80d8864
src/Console/ModelsCommand.php
@@ -1137,6 +1137,9 @@ protected function hasCamelCaseModelProperties()
1137
1138
protected function getAttributeReturnType(Model $model, \ReflectionMethod $reflectionMethod): Collection
1139
{
1140
+ // Private/protected ReflectionMethods require setAccessible prior to PHP 8.1
1141
+ $reflectionMethod->setAccessible(true);
1142
+
1143
/** @var Attribute $attribute */
1144
$attribute = $reflectionMethod->invoke($model);
1145
0 commit comments