Psalm
Get started
Documentation
Paid support
Plugins
Blog
GitHub
<?php declare(strict_types = 1); class HelloWorld { /** * @psalm-var array<string, array{except?: string[], only?: string[]}>|list<string> */ protected $before_filter = array(); } class A extends HelloWorld { protected $before_filter = [ 'login_required' ]; } class B extends HelloWorld { protected $before_filter = [ 'login_required' => [ 'except' => [ 'image', ], ], 'acl_required' => [ 'except' => [ 'image', ], ], ]; }
Snippet created on April 28 2020 at 08:37 UTC
Settings
Get link