File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 (
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments