Skip to content

Commit fa4c935

Browse files
authored
Merge pull request #8 from karoldabro/quickfix/php84-warning
Fix php warning
2 parents ad813d6 + d755b01 commit fa4c935

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# CHANGELOG
22

3+
## [3.0.1] - 2025-05-13
4+
5+
### Fixed
6+
- PHP 8.4 warning
7+
38
## [3.0.0] - 2025-05-08
49

510
### Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ First, install the package using Composer:
3232

3333
| PHP | Laravel | Package | Command |
3434
|------|---------|-------------------------------------------------------------------|----------------------------------------------------------|
35-
| ^8.3 | 12 | 3.0 | ```composer require "kdabrow/validation-codes: ^3.0"``` |
35+
| ^8.3 | 12 | 3.0 | ```composer require "kdabrow/validation-codes: ^3.1"``` |
3636
| ^8.2 | 11 | 2.0 | ```composer require "kdabrow/validation-codes: ^2.0"``` |
3737
| ^8.1 | 10 | [1.1](https://github.com/karoldabro/validation-codes/tree/v1.1.0) | ```composer require "kdabrow/validation-codes: ^1.1" ``` |
3838

src/Providers/ValidationCodesProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function register()
1515
{
1616
$this->mergeConfigFrom($this->pathTo('config' . DIRECTORY_SEPARATOR . 'validation_codes.php'), 'validation_codes');
1717

18-
$this->app->extend('validator', function ($translator, Container $container = null) {
18+
$this->app->extend('validator', function ($translator, Container|null $container = null) {
1919
$factory = new Factory($translator->getTranslator(), $container);
2020

2121
if (isset($this->app['db'], $this->app['validation.presence'])) {

0 commit comments

Comments
 (0)