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 afe3aa1 commit 656b932Copy full SHA for 656b932
src/Console/ModelsCommand.php
@@ -1096,6 +1096,9 @@ protected function hasCamelCaseModelProperties()
1096
1097
protected function getAttributeReturnType(Model $model, \ReflectionMethod $reflectionMethod): Collection
1098
{
1099
+ // Private/protected ReflectionMethods require setAccessible prior to PHP 8.1
1100
+ $reflectionMethod->setAccessible(true);
1101
+
1102
/** @var Attribute $attribute */
1103
$attribute = $reflectionMethod->invoke($model);
1104
0 commit comments