AtomGraph / Core-PHP

Generic Jena-compatible PHP Linked Data management library. Apache license.
https://atomgraph.com
26 stars 4 forks source link

method(Foo $foo) vs method(FooInterface $foo) #20

Open namedgraph opened 12 years ago

namedgraph commented 12 years ago

Find wrong type usages, where class name is used where interface is supposed to be, usually in method parameter type-hinting like here: public function __construct(Request $request, Router $router)