Skip to content

Commit 2a2da8e

Browse files
committed
Fixed incorrect loader class in example
1 parent 80dd1e1 commit 2a2da8e

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

examples/day.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
declare(strict_types=1);
33

44
use Dbalabka\Enumeration\Examples\Enum\Day;
5+
use Dbalabka\StaticConstructorLoader\StaticConstructorLoader;
56

67
if (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
class EnumTest
1516
{

examples/php-enum_comparision.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
declare(strict_types=1);
33

44
use Dbalabka\Enumeration\Examples\Enum\Action;
5+
use Dbalabka\StaticConstructorLoader\StaticConstructorLoader;
56

67
if (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

examples/planet.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
declare(strict_types=1);
33

44
use Dbalabka\Enumeration\Examples\Enum\Planet;
5+
use Dbalabka\StaticConstructorLoader\StaticConstructorLoader;
56

67
if (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();

examples/serialization_php74.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33

44
use Dbalabka\Enumeration\Exception\EnumerationException;
55
use Dbalabka\Enumeration\Examples\Enum\Color;
6+
use Dbalabka\StaticConstructorLoader\StaticConstructorLoader;
67

78
if (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

1516
class Square implements Serializable
1617
{

0 commit comments

Comments
 (0)