for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Handler for PHP serialized integer
*/
class xKerman_Restricted_IntegerHandler 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 integer
*
* @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 string $args integer value
* @return array
* @throws UnserializeFailedException
public function handle(xKerman_Restricted_Source $source, $args)
return array(intval($args, 10), $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.