Skip to content

Commit

Permalink
Fixed "Implicitly marking parameter ... as nullable is deprecated" wa…
Browse files Browse the repository at this point in the history
…rnings
  • Loading branch information
thekid committed Mar 29, 2024
1 parent 6149d67 commit 6a52ec0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ XML streams to objects

## ?.?.? / ????-??-??

## 6.1.1 / 2024-03-29

* Fixed "Implicitly marking parameter ... as nullable is deprecated"
warnings
(@thekid)

## 6.1.0 / 2024-03-24

* Made compatible with XP 12 - @thekid
Expand Down
4 changes: 2 additions & 2 deletions src/main/php/util/address/Iteration.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ public function path() { return $this->it->valid() ? $this->it->key() : null; }
/**
* Returns the next value according to the given definition.
*
* @param util.address.Definition $definition
* @param ?util.address.Definition $definition
* @return var
*/
public function next(Definition $definition= null) {
public function next($definition= null) {
$this->tokens[]= $this->it->token;

$value= null === $definition ? $this->it->current() : $this->it->value($definition, false);
Expand Down
4 changes: 2 additions & 2 deletions src/main/php/util/address/Pointer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ public function streaming() { return $this->streaming; }
/**
* Returns the current value according to the given definition
*
* @param util.address.Definition $definition
* @param ?util.address.Definition $definition
* @return var
* @throws util.NoSuchElementException if there are no more elements
*/
public function value(Definition $definition= null) {
public function value($definition= null) {
$it= $this->streaming->getIterator(true);
return null === $definition ? $it->current() : $it->value($definition, $this->streaming, true);
}
Expand Down
8 changes: 4 additions & 4 deletions src/main/php/util/address/Streaming.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ public function path() {
/**
* Returns the current value according to the given definition
*
* @param util.address.Definition $definition
* @param ?util.address.Definition $definition
* @return var
* @throws util.NoSuchElementException if there are no more elements
*/
public function value(Definition $definition= null) {
public function value($definition= null) {
$it= $this->getIterator(true);
if ($it->valid()) {
return null === $definition ? $it->current() : $it->value($definition, true);
Expand All @@ -111,11 +111,11 @@ public function value(Definition $definition= null) {
/**
* Returns the next value according to the given definition
*
* @param util.address.Definition $definition
* @param ?util.address.Definition $definition
* @return var
* @throws util.NoSuchElementException if there are no more elements
*/
public function next(Definition $definition= null) {
public function next($definition= null) {
$it= $this->getIterator(true);
if ($it->valid()) {
$value= null === $definition ? $it->current() : $it->value($definition, false);
Expand Down

0 comments on commit 6a52ec0

Please sign in to comment.