Skip to content

Commit caeb605

Browse files
committed
Disable incorrect CS rule
1 parent 4ce720a commit caeb605

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.php-cs-fixer.dist.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
],
3939
'no_whitespace_before_comma_in_array' => false, // Should be dropped when we drop support for PHP 7.x
4040
'stringable_for_to_string' => false,
41+
'modern_serialization_methods' => false, // Could be re-enabled when we drop support for PHP 7.3 and lower
4142
])
4243
->setRiskyAllowed(true)
4344
->setFinder(

src/State/HubAdapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,15 @@ public function __clone()
206206
/**
207207
* @see https://www.php.net/manual/en/language.oop5.magic.php#object.wakeup
208208
*/
209-
public function __unserialize(array $data)
209+
public function __wakeup()
210210
{
211211
throw new \BadMethodCallException('Unserializing instances of this class is forbidden.');
212212
}
213213

214214
/**
215215
* @see https://www.php.net/manual/en/language.oop5.magic.php#object.sleep
216216
*/
217-
public function __serialize()
217+
public function __sleep()
218218
{
219219
throw new \BadMethodCallException('Serializing instances of this class is forbidden.');
220220
}

0 commit comments

Comments
 (0)