for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Webmozart\Assert\StaticAnalysis\AssertNotInstanceOf;
use Webmozart\Assert\Assert;
class A
{
}
class B
/** @param A|B $value */
function consume($value) : A
Assert::notInstanceOf($value, B::class);
return $value;