Skip to content

Commit f40edb9

Browse files
onairmarcEncoreBot
andauthored
Fix Namespace Issue (#39)
Co-authored-by: EncoreBot <[email protected]>
1 parent ef7a0df commit f40edb9

File tree

7 files changed

+13
-7
lines changed

7 files changed

+13
-7
lines changed

.git-blame-ignore-revs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ f74b50a0c5a93e2042dd0899f67dc0d77d9f37b2
2323
3c7aa0aeabda229e437d00339eabf9fe469fc67e
2424
789187af9e0c8772c7ee8ec5d0d601368b624bd0
2525
065611695e2356cd6dc8b5b5f6cfe8b51f720e1d
26+
92306ee17d877c6b2c3828eaeb2cbcce1d129875

src/Objects/Arr.php

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

33
namespace EncoreDigitalGroup\StdLib\Objects;
44

5-
use EncoreDigitalGroup\StdLib\Support\Types\Arr as BaseArray;
5+
use EncoreDigitalGroup\StdLib\Objects\Support\Types\Arr as BaseArray;
66

7-
/** @deprecated Use EncoreDigitalGroup\StdLib\Support\Types\Arr instead. */
7+
/** @deprecated Use EncoreDigitalGroup\StdLib\Objects\Support\Types\Arr instead. */
88
class Arr extends BaseArray {}

src/Objects/Number.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace EncoreDigitalGroup\StdLib\Objects;
44

5-
use EncoreDigitalGroup\StdLib\Support\Types\Number as BaseNumber;
5+
use EncoreDigitalGroup\StdLib\Objects\Support\Types\Number as BaseNumber;
66

77
/** @deprecated Use EncoreDigitalGroup\StdLib\Objects\Support\Types\Number instead. */
88
class Number extends BaseNumber {}

src/Objects/Str.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace EncoreDigitalGroup\StdLib\Objects;
44

5-
use EncoreDigitalGroup\StdLib\Support\Types\Str as BaseString;
5+
use EncoreDigitalGroup\StdLib\Objects\Support\Types\Str as BaseString;
66

77
/** @deprecated Use EncoreDigitalGroup\StdLib\Objects\Support\Types\Str instead. */
88
class Str extends BaseString

src/Support/Types/Arr.php renamed to src/Objects/Support/Types/Arr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace EncoreDigitalGroup\StdLib\Support\Types;
3+
namespace EncoreDigitalGroup\StdLib\Objects\Support\Types;
44

55
use EncoreDigitalGroup\StdLib\Exceptions\NullExceptions\ArgumentNullException;
66
use Illuminate\Support\Arr as ArraySupport;

src/Support/Types/Number.php renamed to src/Objects/Support/Types/Number.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace EncoreDigitalGroup\StdLib\Support\Types;
3+
namespace EncoreDigitalGroup\StdLib\Objects\Support\Types;
44

55
use Illuminate\Support\Number as NumberSupport;
66

@@ -16,4 +16,9 @@ public static function toInt($value): int
1616
{
1717
return (int) $value;
1818
}
19+
20+
public static function validate(mixed $value): bool
21+
{
22+
return filter_var($value, FILTER_VALIDATE_INT) !== false;
23+
}
1924
}

src/Support/Types/Str.php renamed to src/Objects/Support/Types/Str.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace EncoreDigitalGroup\StdLib\Support\Types;
3+
namespace EncoreDigitalGroup\StdLib\Objects\Support\Types;
44

55
/**
66
* @api

0 commit comments

Comments
 (0)