Skip to content
This repository was archived by the owner on May 26, 2021. It is now read-only.
Merged
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
4 changes: 1 addition & 3 deletions src/StrongTypes/Collection/AliasTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ public function get($offset)
*
* @see ArrayIterator::offsetSet
* @param integer $offset The location in the collection to set a new value for.
* @param mixed $value The new value for the collection location.
* @return Collection A reference to the current collection.
* @param integer $value The new value for the collection location.
*/
public function set($offset, $value)
{
Expand All @@ -76,7 +75,6 @@ public function set($offset, $value)
*
* @see ArrayIterator::offsetUnset
* @param integer $offset The location in the collection to unset.
* @return Collection A reference to the current collection.
*/
public function remove($offset)
{
Expand Down
2 changes: 0 additions & 2 deletions src/StrongTypes/Collection/ArrayAccessTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public function offsetGet($offset)
* @aliasof set
* @param integer $offset The location in the collection to set a new value for.
* @param mixed $value The new value for the collection location.
* @return Collection A reference to the current collection.
*/
public function offsetSet($offset, $value)
{
Expand All @@ -76,7 +75,6 @@ public function offsetSet($offset, $value)
*
* @aliasof remove
* @param integer $offset The location in the collection to unset.
* @return Collection A reference to the current collection.
*/
public function offsetUnset($offset)
{
Expand Down
2 changes: 0 additions & 2 deletions src/StrongTypes/Collection/SeekableInterfaceTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ public function key()
* Move to the next entry in the collection.
*
* @see ArrayIterator::next()
* @return Collection A reference to the current collection.
*/
public function next()
{
Expand All @@ -81,7 +80,6 @@ public function next()
* Rewind pointer back to the beginning of the collection.
*
* @see ArrayIterator::rewind()
* @return Collection A reference to the current collection.
*/
public function rewind()
{
Expand Down
2 changes: 1 addition & 1 deletion src/StrongTypes/String.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function setExactLength($length)
/**
* Validates that the parameter was an integer.
*
* @param mixed $param The value to check.
* @param integer $param The value to check.
* @return void
*
* @throws InvalidArgumentException
Expand Down
3 changes: 3 additions & 0 deletions tests/StrongTypes/TestMultibyteString.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@

class TestMultibyteString extends MultibyteString
{
/**
* @param string $s
*/
public function __construct($s)
{
$this->setMinLength(5);
Expand Down
3 changes: 3 additions & 0 deletions tests/StrongTypes/TestString.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@

class TestString extends String
{
/**
* @param string $s
*/
public function __construct($s)
{
$this->setMinLength(5);
Expand Down
3 changes: 3 additions & 0 deletions tests/StrongTypes/TestString2.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@

class TestString2 extends String
{
/**
* @param string $s
*/
public function __construct($s)
{
$this->setExactLength(5);
Expand Down
3 changes: 3 additions & 0 deletions tests/StrongTypes/TestString3.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@

class TestString3 extends String
{
/**
* @param string $s
*/
public function __construct($s)
{
$this->setExactLength('abc');
Expand Down
3 changes: 3 additions & 0 deletions tests/StrongTypes/TestString4.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@

class TestString4 extends String
{
/**
* @param string $s
*/
public function __construct($s)
{
$this->setExactLength(new String('abc'));
Expand Down