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)
573573 $ methodReflections = $ reflectionClass ->getMethods ();
574574 if ($ methodReflections ) {
575575 $ methodReflections = array_filter ($ methodReflections , function ($ methodReflection ) {
576- return !(
576+ return !$ methodReflection -> isPrivate () && ! (
577577 $ methodReflection ->getDeclaringClass ()->getName () === \Illuminate \Database \Eloquent \Model::class && (
578578 $ methodReflection ->getName () === 'setClassCastableAttribute ' ||
579579 $ methodReflection ->getName () === 'setEnumCastableAttribute '
Original file line number Diff line number Diff line change @@ -103,4 +103,8 @@ public function getAttributeReturnsNullableCallableAttribute(): ?callable
103103 public function getAttributeReturnsVoidAttribute (): void
104104 {
105105 }
106+
107+ private function getInvalidAccessModifierAttribute ()
108+ {
109+ }
106110}
Original file line number Diff line number Diff line change @@ -133,4 +133,8 @@ public function getAttributeReturnsNullableCallableAttribute(): ?callable
133133 public function getAttributeReturnsVoidAttribute (): void
134134 {
135135 }
136+
137+ private function getInvalidAccessModifierAttribute ()
138+ {
139+ }
136140}
You can’t perform that action at this time.
0 commit comments