Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: missing return types #1104

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions common/class.Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function __construct(common_Object $container, $debug = '')
* @author Lionel Lecaque <lionel.lecaque@tudor.lu>
* @return int
*/
public function count()
public function count(): int
{
$returnValue = (int) 0;

Expand Down Expand Up @@ -238,9 +238,8 @@ public function offsetExists(common_Object $key)
* @author Lionel Lecaque <lionel.lecaque@tudor.lu>
* @return mixed
*/
public function getIterator()
public function getIterator(): ArrayIterator
{

return new ArrayIterator($this->sequence);
}

Expand Down
5 changes: 2 additions & 3 deletions common/oatbox/filesystem/Directory.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

namespace oat\oatbox\filesystem;

use ArrayIterator;
use League\Flysystem\FileExistsException;

class Directory extends FileSystemHandler implements \IteratorAggregate
Expand Down Expand Up @@ -57,10 +58,8 @@ public function getFile($path)

/**
* Method constraints by IteratorAggregator, wrapper to getFlyIterator
*
* @return \ArrayIterator
*/
public function getIterator()
public function getIterator(): ArrayIterator
{
return $this->getFlyIterator();
}
Expand Down
Loading