Skip to content

Commit 9046f1e

Browse files
Fix return types
1 parent 8915814 commit 9046f1e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

PropertyAccessorBuilder.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class PropertyAccessorBuilder
4747
*
4848
* @return $this
4949
*/
50-
public function enableMagicMethods(): self
50+
public function enableMagicMethods(): static
5151
{
5252
$this->magicMethods = PropertyAccessor::MAGIC_GET | PropertyAccessor::MAGIC_SET | PropertyAccessor::MAGIC_CALL;
5353

@@ -59,7 +59,7 @@ public function enableMagicMethods(): self
5959
*
6060
* @return $this
6161
*/
62-
public function disableMagicMethods(): self
62+
public function disableMagicMethods(): static
6363
{
6464
$this->magicMethods = PropertyAccessor::DISALLOW_MAGIC_METHODS;
6565

@@ -93,7 +93,7 @@ public function enableMagicGet(): self
9393
*
9494
* @return $this
9595
*/
96-
public function enableMagicSet(): self
96+
public function enableMagicSet(): static
9797
{
9898
$this->magicMethods |= PropertyAccessor::MAGIC_SET;
9999

@@ -117,7 +117,7 @@ public function disableMagicCall(): static
117117
*
118118
* @return $this
119119
*/
120-
public function disableMagicGet(): self
120+
public function disableMagicGet(): static
121121
{
122122
$this->magicMethods &= ~PropertyAccessor::MAGIC_GET;
123123

@@ -129,7 +129,7 @@ public function disableMagicGet(): self
129129
*
130130
* @return $this
131131
*/
132-
public function disableMagicSet(): self
132+
public function disableMagicSet(): static
133133
{
134134
$this->magicMethods &= ~PropertyAccessor::MAGIC_SET;
135135

0 commit comments

Comments
 (0)