Skip to content

Commit 1d374ab

Browse files
committed
refactor: remove __set_state() in Config\Paths
No longer use config(Config\Paths::class).
1 parent bd6d744 commit 1d374ab

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

app/Config/Paths.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,4 @@ class Paths
7777
* is used when no value is provided to `Services::renderer()`.
7878
*/
7979
public string $viewDirectory = __DIR__ . '/../Views';
80-
81-
public static function __set_state(array $array)
82-
{
83-
$obj = new self();
84-
85-
$properties = array_keys(get_object_vars($obj));
86-
87-
foreach ($properties as $property) {
88-
$obj->{$property} = $array[$property];
89-
}
90-
91-
return $obj;
92-
}
9380
}

0 commit comments

Comments
 (0)