You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Argument 1 of ServiceProvider\CacheServiceProvider::register has wrong type 'Phalcon\Di\DiInterface', expecting 'mixed' as defined by Phalcon\Di\ServiceProviderInterface::register (see https://psalm.dev/042)
public function register(DiInterface $di): void
Http\Request::getClientAddress has wrong type 'bool', expecting 'mixed' as defined by Phalcon\Http\RequestInterface::getClientAddress
PossiblyInvalidMethodCall
Cannot call method on possible array<array-key, Phalcon\Model> variable (see https://psalm.dev/113)
])->filter(fn ($item) => $item);
InvalidClassCasing
Class, interface or enum Phalcon\Mvc\Model\Metadata\Memory has wrong casing (see https://psalm.dev/007)
return new Memory();
The text was updated successfully, but these errors were encountered:
RayHughes
changed the title
expecting type mixed for service provider registration
Psalm Errors After Upgrade to 5.8 from 4.1
Nov 28, 2024
Is the following message you showed coming from Psalm?
Argument 1 of ServiceProvider\CacheServiceProvider::register has wrong type 'Phalcon\Di\DiInterface', expecting 'mixed' as defined by Phalcon\Di\ServiceProviderInterface::register (see https://psalm.dev/042)
public function register(DiInterface $di): void
If so, I think you should suspect Psalm.
Currently (v5.8) ide-stubs is
MethodSignatureMismatch
PossiblyInvalidMethodCall
InvalidClassCasing
The text was updated successfully, but these errors were encountered: