File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 22declare (strict_types=1 );
33
44use Dbalabka \Enumeration \Examples \Enum \Day ;
5+ use Dbalabka \StaticConstructorLoader \StaticConstructorLoader ;
56
67if (version_compare (PHP_VERSION , '7.4.0beta ' , '< ' )) {
78 trigger_error ('This code requires PHP >= 7.4 ' , E_USER_NOTICE );
89 return ;
910}
1011
1112$ composer = require_once (__DIR__ . '/../vendor/autoload.php ' );
12- $ loader = new ConstructStatic \ Loader ($ composer );
13+ $ loader = new StaticConstructorLoader ($ composer );
1314
1415class EnumTest
1516{
Original file line number Diff line number Diff line change 22declare (strict_types=1 );
33
44use Dbalabka \Enumeration \Examples \Enum \Action ;
5+ use Dbalabka \StaticConstructorLoader \StaticConstructorLoader ;
56
67if (version_compare (PHP_VERSION , '7.4.0beta ' , '< ' )) {
78 trigger_error ('This code requires PHP >= 7.4 ' , E_USER_NOTICE );
89 return ;
910}
1011
1112$ composer = require_once (__DIR__ . '/../vendor/autoload.php ' );
12- $ loader = new ConstructStatic \ Loader ($ composer );
13+ $ loader = new StaticConstructorLoader ($ composer );
1314
1415$ viewAction = Action::$ view ;
1516
Original file line number Diff line number Diff line change 22declare (strict_types=1 );
33
44use Dbalabka \Enumeration \Examples \Enum \Planet ;
5+ use Dbalabka \StaticConstructorLoader \StaticConstructorLoader ;
56
67if (version_compare (PHP_VERSION , '7.4.0beta ' , '< ' )) {
78 trigger_error ('This code requires PHP >= 7.4 ' , E_USER_NOTICE );
89 return ;
910}
1011
1112$ composer = require_once (__DIR__ . '/../vendor/autoload.php ' );
12- $ loader = new ConstructStatic \ Loader ($ composer );
13+ $ loader = new StaticConstructorLoader ($ composer );
1314
1415$ earthWeight = 175 ;
1516$ mass = $ earthWeight / Planet::$ earth ->surfaceGravity ();
Original file line number Diff line number Diff line change 33
44use Dbalabka \Enumeration \Exception \EnumerationException ;
55use Dbalabka \Enumeration \Examples \Enum \Color ;
6+ use Dbalabka \StaticConstructorLoader \StaticConstructorLoader ;
67
78if (version_compare (PHP_VERSION , '7.4.0beta ' , '< ' )) {
89 trigger_error ('This code requires PHP >= 7.4 ' , E_USER_NOTICE );
910 return ;
1011}
1112
1213$ composer = require_once (__DIR__ . '/../vendor/autoload.php ' );
13- $ loader = new ConstructStatic \ Loader ($ composer );
14+ $ loader = new StaticConstructorLoader ($ composer );
1415
1516class Square implements Serializable
1617{
You can’t perform that action at this time.
0 commit comments