Skip to content

Commit

Permalink
API Explicity mark nullable parameters for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Nov 28, 2024
1 parent 6b8999b commit 361a4b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/DataDifferencer.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class DataDifferencer extends ModelData
* @param DataObject $fromRecord
* @param DataObject $toRecord
*/
public function __construct(DataObject $fromRecord = null, DataObject $toRecord = null)
public function __construct(?DataObject $fromRecord = null, ?DataObject $toRecord = null)
{
$this->fromRecord = $fromRecord;
$this->toRecord = $toRecord;
Expand Down
4 changes: 2 additions & 2 deletions src/Versioned.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ protected function updateInheritableQueryParams(&$params)
* @param DataQuery|null $dataQuery
* @throws InvalidArgumentException
*/
protected function augmentSQL(SQLSelect $query, DataQuery $dataQuery = null)
protected function augmentSQL(SQLSelect $query, ?DataQuery $dataQuery = null)
{
if (!$dataQuery) {
return;
Expand Down Expand Up @@ -895,7 +895,7 @@ protected function isTableVersioned($table)
* @param DataQuery $dataQuery
* @param DataObject $dataObject
*/
protected function augmentLoadLazyFields(SQLSelect &$query, DataQuery &$dataQuery = null, $dataObject)
protected function augmentLoadLazyFields(SQLSelect &$query, ?DataQuery &$dataQuery = null, $dataObject)
{
// The VersionedMode local variable ensures that this decorator only applies to
// queries that have originated from the Versioned object, and have the Versioned
Expand Down

0 comments on commit 361a4b2

Please sign in to comment.