vimeo/psalm
Psalm is a powerful PHP static analysis tool that finds type errors and bugs before runtime. Install via Composer, configure for your codebase, and run it locally or try the live demo at psalm.dev. Docs and integrations available for teams and CI.
Emitted when a using class of a trait does not extend the class specified using [@psalm-require-extends](https://github.com/psalm-require-extends).
<?php
class A { }
/**
* [@psalm-require-extends](https://github.com/psalm-require-extends) A
*/
trait T { }
class B {
// ExtensionRequirementViolation is emitted, as T requires
// the using class B to extend A, which is not the case
use T;
}
How can I help you explore Laravel packages today?