Skip to content

Commit

Permalink
PHP 8.1 Refactorings
Browse files Browse the repository at this point in the history
  • Loading branch information
rotimi committed Feb 4, 2024
1 parent 13c38ff commit 19b3211
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"phpunit/phpunit": "^10.0",
"php-coveralls/php-coveralls": "^2.0",
"vimeo/psalm": "^5.4.0",
"rector/rector": "^0.18.0"
"rector/rector": "^0.19.0"
},
"autoload": {
"classmap": ["src/"]
Expand Down
1 change: 0 additions & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
\Rector\CodeQuality\Rector\If_\ShortenElseIfRector::class,
\Rector\CodingStyle\Rector\Catch_\CatchExceptionNameMatchingTypeRector::class,
\Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector::class,
\Rector\CodingStyle\Rector\ClassMethod\UnSpreadOperatorRector::class,
\Rector\DeadCode\Rector\PropertyProperty\RemoveNullPropertyInitializationRector::class,
\Rector\TypeDeclaration\Rector\ClassMethod\ReturnNeverTypeRector::class,
];
Expand Down
6 changes: 3 additions & 3 deletions src/GDAO/Model/CollectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,13 @@ public function __set($key, \GDAO\Model\RecordInterface $val): void;
* of \GDAO\Model\RecordInterface else throw a
* \GDAO\Model\CollectionCanOnlyContainGDAORecordsException exception.
*
* @param mixed $key The requested key.
* @param mixed $offset The requested key.
*
* @param \GDAO\Model\RecordInterface $val The value to set it to.
* @param \GDAO\Model\RecordInterface $value The value to set it to.
*
* @throws \GDAO\Model\CollectionCanOnlyContainGDAORecordsException
*/
public function offsetSet(mixed $key, mixed $val): void;
public function offsetSet(mixed $offset, mixed $value): void;

/**
* Returns a string representation of an instance of this class.
Expand Down

0 comments on commit 19b3211

Please sign in to comment.