Skip to content

Commit a33acda

Browse files
minor #61103 Fix various bool-type coercions (Girgias)
This PR was squashed before being merged into the 6.4 branch. Discussion ---------- Fix various bool-type coercions | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no <!-- if yes, also update UPGRADE-*.md and src/**/CHANGELOG.md --> | Issues | | License | MIT This is cherry-picking some of the commits from #60890 which are basically bugs. Not sure what the commit naming policy is so do let me know if you want me to manually rebase and rename commits following some guidelines. Commits ------- b3d30e3b60e Fix various bool-type coercions
2 parents 181a378 + 074de0e commit a33acda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PropertyAccessorBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function disableMagicSet(): static
128128
*/
129129
public function isMagicCallEnabled(): bool
130130
{
131-
return (bool) ($this->magicMethods & PropertyAccessor::MAGIC_CALL);
131+
return $this->magicMethods & PropertyAccessor::MAGIC_CALL;
132132
}
133133

134134
/**

0 commit comments

Comments
 (0)