Skip to content

Commit eb1a128

Browse files
committed
Add more tests for DisableMagicSerialize
1 parent a385aee commit eb1a128

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/fixtures/disallow-magic-serialize.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,26 @@ public function sleep(): array
2525
{
2626
return [];
2727
}
28+
29+
// @phpcsErrorOnNextLine
30+
public function __wakeup(): array
31+
{
32+
return [];
33+
}
34+
35+
public function wakeup(): array
36+
{
37+
return [];
38+
}
39+
40+
// @phpcsErrorOnNextLine
41+
public function __unserialize(): array
42+
{
43+
return [];
44+
}
45+
46+
public function unserialize(): array
47+
{
48+
return [];
49+
}
2850
}

0 commit comments

Comments
 (0)