1 | <?php |
||
19 | class Npm extends PackageManager |
||
20 | { |
||
21 | /** |
||
22 | * @inheritdoc |
||
23 | */ |
||
24 | protected $name = 'npm'; |
||
25 | |||
26 | /** |
||
27 | * @inheritdoc |
||
28 | */ |
||
29 | public $file = 'package.json'; |
||
30 | |||
31 | /** |
||
32 | * @inheritdoc |
||
33 | */ |
||
34 | public $phpPackage = 'non existent npmphp'; |
||
35 | |||
36 | /** |
||
37 | * Minimal npm config. |
||
38 | */ |
||
39 | protected $config = [ |
||
40 | 'name' => 'composer-asset-plugin', |
||
41 | 'description' => "This file is auto-generated with 'hiqdev/composer-asset-plugin'.", |
||
42 | 'readme' => ' ', |
||
43 | 'repository' => array('type'=>'git'), |
||
44 | ]; |
||
45 | |||
46 | /** |
||
47 | * @inheritdoc |
||
48 | */ |
||
49 | protected function runInstall() |
||
55 | } |
||
56 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
integer
values, zero is a special case, in particular the following results might be unexpected: