Skip to content

Commit 4eb1843

Browse files
committed
Revert "fix: allow private methods to be used as accessors"
This reverts commit 8f26c06.
1 parent bcdaa65 commit 4eb1843

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ This fork is intended to provide the community with immediate access to these en
2727

2828
This fork includes the following changes and enhancements:
2929

30-
- [fix: allow private methods to be used as accessors](https://github.com/larastan/larastan/pull/2334)
3130
- [feat: add optional noModelForwardingToBuilder and noModelStaticForwardingToBuilder](https://github.com/larastan/larastan/pull/2317)
3231
- [fix: chunkWhile generics](https://github.com/larastan/larastan/pull/2262)
3332
- [fix: factory {has,for}* methods should return static](https://github.com/larastan/larastan/pull/2252)

src/Properties/ModelPropertyHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function hasAccessor(ClassReflection $classReflection, string $propertyNa
139139

140140
$methodReflection = $classReflection->getNativeMethod($camelCase);
141141

142-
if ($methodReflection->isPublic()) {
142+
if ($methodReflection->isPublic() || $methodReflection->isPrivate()) {
143143
return false;
144144
}
145145

0 commit comments

Comments
 (0)