File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
tests/Console/ModelsCommand/Getter Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -573,7 +573,7 @@ public function getPropertiesFromMethods($model)
573
573
$ methodReflections = $ reflectionClass ->getMethods ();
574
574
if ($ methodReflections ) {
575
575
$ methodReflections = array_filter ($ methodReflections , function ($ methodReflection ) {
576
- return !(
576
+ return !$ methodReflection -> isPrivate () && ! (
577
577
$ methodReflection ->getDeclaringClass ()->getName () === \Illuminate \Database \Eloquent \Model::class && (
578
578
$ methodReflection ->getName () === 'setClassCastableAttribute ' ||
579
579
$ methodReflection ->getName () === 'setEnumCastableAttribute '
Original file line number Diff line number Diff line change @@ -103,4 +103,8 @@ public function getAttributeReturnsNullableCallableAttribute(): ?callable
103
103
public function getAttributeReturnsVoidAttribute (): void
104
104
{
105
105
}
106
+
107
+ private function getInvalidAccessModifierAttribute ()
108
+ {
109
+ }
106
110
}
Original file line number Diff line number Diff line change @@ -133,4 +133,8 @@ public function getAttributeReturnsNullableCallableAttribute(): ?callable
133
133
public function getAttributeReturnsVoidAttribute (): void
134
134
{
135
135
}
136
+
137
+ private function getInvalidAccessModifierAttribute ()
138
+ {
139
+ }
136
140
}
You can’t perform that action at this time.
0 commit comments