for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Handler to parse PHP serialized null value
*/
class xKerman_Restricted_NullHandler implements xKerman_Restricted_HandlerInterface
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
* parse given `$source` as PHP serialized null value
*
* @param Source $source parser input
$source
xKerman_Restricted_Source
This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.
@param
It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.
* @param null $args null
* @return array parse result
* @throws UnserializeFailedException
public function handle(xKerman_Restricted_Source $source, $args)
return array($args, $source);
}
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.