Skip to content

Commit bb82e3d

Browse files
committed
fix namespace issues
1 parent 8eb13fc commit bb82e3d

File tree

8 files changed

+20
-20
lines changed

8 files changed

+20
-20
lines changed

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ composer require dvlpr1996/php-enum-helper-trait
2121
## Usage
2222

2323
```php
24-
use PhpEnumHelperTrait\EnumHelperTrait;
24+
use dvlpr1996\PhpEnumHelperTrait\EnumHelperTrait;
2525

2626
enum Foo: string {
2727
use EnumHelperTrait;

Tests/FakeEnums/BackedIntEnum.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpEnumHelperTrait\Tests\FakeEnums;
5+
namespace dvlpr1996\PhpEnumHelperTrait\Tests\FakeEnums;
66

77
require __DIR__ . '/../../vendor/autoload.php';
88

9-
use PhpEnumHelperTrait\EnumHelperTrait;
9+
use dvlpr1996\PhpEnumHelperTrait\EnumHelperTrait;
1010

1111
enum BackedIntEnum: int
1212
{

Tests/FakeEnums/BackedStringEnum.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpEnumHelperTrait\Tests\FakeEnums;
5+
namespace dvlpr1996\PhpEnumHelperTrait\Tests\FakeEnums;
66

77
require __DIR__ . '/../../vendor/autoload.php';
88

9-
use PhpEnumHelperTrait\EnumHelperTrait;
9+
use dvlpr1996\PhpEnumHelperTrait\EnumHelperTrait;
1010

1111
enum BackedStringEnum: string
1212
{

Tests/FakeEnums/EmptyEnum.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpEnumHelperTrait\Tests\FakeEnums;
5+
namespace dvlpr1996\PhpEnumHelperTrait\Tests\FakeEnums;
66

77
require __DIR__ . '/../../vendor/autoload.php';
88

9-
use PhpEnumHelperTrait\EnumHelperTrait;
9+
use dvlpr1996\PhpEnumHelperTrait\EnumHelperTrait;
1010

1111
enum EmptyEnum
1212
{

Tests/FakeEnums/PureEnum.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpEnumHelperTrait\Tests\FakeEnums;
5+
namespace dvlpr1996\PhpEnumHelperTrait\Tests\FakeEnums;
66

77
require __DIR__ . '/../../vendor/autoload.php';
88

9-
use PhpEnumHelperTrait\EnumHelperTrait;
9+
use dvlpr1996\PhpEnumHelperTrait\EnumHelperTrait;
1010

1111
enum PureEnum
1212
{

Tests/Unit/EnumHelperTraitTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpEnumHelperTrait\Tests;
5+
namespace dvlpr1996\PhpEnumHelperTrait\Tests;
66

77
use PHPUnit\Framework\TestCase;
88
use PHPUnit\Framework\Attributes\DataProvider;
9-
use PhpEnumHelperTrait\Tests\FakeEnums\PureEnum;
10-
use PhpEnumHelperTrait\Tests\FakeEnums\EmptyEnum;
11-
use PhpEnumHelperTrait\Tests\FakeEnums\BackedIntEnum;
12-
use PhpEnumHelperTrait\Tests\FakeEnums\BackedStringEnum;
9+
use dvlpr1996\PhpEnumHelperTrait\Tests\FakeEnums\PureEnum;
10+
use dvlpr1996\PhpEnumHelperTrait\Tests\FakeEnums\EmptyEnum;
11+
use dvlpr1996\PhpEnumHelperTrait\Tests\FakeEnums\BackedIntEnum;
12+
use dvlpr1996\PhpEnumHelperTrait\Tests\FakeEnums\BackedStringEnum;
1313

1414
/**
1515
* @covers EnumHelperTrait

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dvlpr1996/php-enum-helper-trait",
3-
"description": "A PHP trait designed to simplify and enhance the functionality of enums. This package provides utility methods and features that make working with enums more intuitive and efficient. Ideal for developers looking to streamline their enum handling in PHP applications",
3+
"description": "Simplify enum handling in PHP with this versatile trait. Enhance code clarity and streamline workflows with utility methods for enum management.",
44
"keywords": [
55
"php",
66
"enum",
@@ -25,7 +25,7 @@
2525
"minimum-stability": "stable",
2626
"authors": [
2727
{
28-
"name": "Nima",
28+
"name": "nima jahan bakhshian",
2929
"email": "nimajahanbakhshian@gmail.com",
3030
"role": "Developer"
3131
}
@@ -40,12 +40,12 @@
4040
},
4141
"autoload": {
4242
"psr-4": {
43-
"PhpEnumHelperTrait\\": "src/"
43+
"dvlpr1996\\PhpEnumHelperTrait\\": "src/"
4444
}
4545
},
4646
"autoload-dev": {
4747
"psr-4": {
48-
"PhpEnumHelperTrait\\Tests\\": "Tests/"
48+
"dvlpr1996\\PhpEnumHelperTrait\\Tests\\": "Tests/"
4949
}
5050
},
5151
"scripts": {

src/EnumHelperTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
* @Package: php-enum-helper-trait
55
* @trait : EnumHelperTrait
66
* @Author : Nima jahan bakhshian / dvlpr1996 <nimajahanbakhshian@gmail.com>
7-
* @link : https://github.com/dvlpr1996
7+
* @link : https://github.com/dvlpr1996/php-enum-helper-trait
88
* @License: MIT License Copyright (c) 2024 (until present) Nima jahan bakhshian
99
*/
1010

1111
declare(strict_types=1);
1212

13-
namespace PhpEnumHelperTrait;
13+
namespace dvlpr1996\PhpEnumHelperTrait;
1414

1515
use Exception;
1616
use SimpleXMLElement;

0 commit comments

Comments
 (0)