Skip to content

Commit 3bc1198

Browse files
committed
Merge branch 'release/0.7.8'
2 parents 7473975 + 82882bd commit 3bc1198

11 files changed

Lines changed: 39 additions & 16 deletions

.version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"strategy": "semver",
33
"major": 0,
44
"minor": 7,
5-
"patch": 7,
5+
"patch": 8,
66
"build": 0
77
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 NeuronPHP
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

VERSIONLOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 0.7.8 2025-11-28
2+
13
## 0.7.7 2025-11-18
24
* Added base64 validation.
35

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"require": {
1313
"ext-curl": "*",
1414
"ext-json": "*",
15-
"neuron-php/data": "0.8.*"
15+
"neuron-php/data": "0.9.*"
1616
},
1717
"require-dev": {
1818
"phpunit/phpunit": "9.*"

src/Validation/IsDateWithinRange.php

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

99
namespace Neuron\Validation;
1010

11-
use Neuron\Data\Object\DateRange;
11+
use Neuron\Data\Objects\DateRange;
1212

1313
/**
1414
* Requires a date within a specified range.

src/Validation/IsNumberWithinRange.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,30 @@
99
*/
1010
class IsNumberWithinRange extends Base
1111
{
12-
private Data\Object\NumericRange $_range;
12+
private Data\Objects\NumericRange $_range;
1313

14-
public function __construct( Data\Object\NumericRange $range )
14+
public function __construct( Data\Objects\NumericRange $range )
1515
{
1616
$this->setRange( $range );
1717

1818
parent::__construct();
1919
}
2020

2121
/**
22-
* @param Data\Object\NumericRange $range
22+
* @param Data\Objects\NumericRange $range
2323
* @return $this
2424
*/
25-
public function setRange( Data\Object\NumericRange $range ): static
25+
public function setRange( Data\Objects\NumericRange $range ): static
2626
{
2727
$this->_range = $range;
2828

2929
return $this;
3030
}
3131

3232
/**
33-
* @return Data\Object\NumericRange
33+
* @return Data\Objects\NumericRange
3434
*/
35-
public function getRange(): Data\Object\NumericRange
35+
public function getRange(): Data\Objects\NumericRange
3636
{
3737
return $this->_range;
3838
}

tests/Data/Validation/DateRangeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function testRangeFail()
1414

1515
$this->assertFalse(
1616
$Validator->isValid(
17-
new \Neuron\Data\Object\DateRange( '2000-01-01', '2000-01-01' )
17+
new \Neuron\Data\Objects\DateRange( '2000-01-01', '2000-01-01' )
1818
)
1919
);
2020
}
@@ -27,7 +27,7 @@ public function testRangePass()
2727

2828
$this->assertTrue(
2929
$Validator->isValid(
30-
new \Neuron\Data\Object\DateRange( '2000-01-01', '2000-01-03' )
30+
new \Neuron\Data\Objects\DateRange( '2000-01-01', '2000-01-03' )
3131
)
3232
);
3333
}

tests/Data/Validation/DateWithinRangeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
namespace Tests\Data\Validation;
33

4-
use Neuron\Data\Object\DateRange;
4+
use Neuron\Data\Objects\DateRange;
55
use Neuron\Validation\IsDateWithinRange;
66
use PHPUnit\Framework\TestCase;
77

tests/Data/Validation/NumberWithinRangeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
namespace Tests\Data\Validation;
33

4-
use Neuron\Data\Object\NumericRange;
4+
use Neuron\Data\Objects\NumericRange;
55
use Neuron\Validation\IsNumberWithinRange;
66

77
class NumberWithinRangeTest extends \PHPUnit\Framework\TestCase

tests/Data/Validation/NumericRangeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public function testRangePass()
99

1010
$this->assertTrue(
1111
$Validator->isValid(
12-
new \Neuron\Data\Object\NumericRange( 1, 10 )
12+
new \Neuron\Data\Objects\NumericRange( 1, 10 )
1313
)
1414
);
1515
}
@@ -20,7 +20,7 @@ public function testRangeFail()
2020

2121
$this->assertFalse(
2222
$Validator->isValid(
23-
new \Neuron\Data\Object\NumericRange( 10, 1 )
23+
new \Neuron\Data\Objects\NumericRange( 10, 1 )
2424
)
2525
);
2626
}

0 commit comments

Comments
 (0)