Skip to content
Closed
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
12 changes: 6 additions & 6 deletions src/Files/FileList.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ private function getFilterClass()
*
* @return void
*/
#[ReturnTypeWillChange]
#[\ReturnTypeWillChange]
public function rewind()
{
reset($this->files);
Expand All @@ -183,7 +183,7 @@ public function rewind()
*
* @return \PHP_CodeSniffer\Files\File
*/
#[ReturnTypeWillChange]
#[\ReturnTypeWillChange]
public function current()
{
$path = key($this->files);
Expand All @@ -201,7 +201,7 @@ public function current()
*
* @return void
*/
#[ReturnTypeWillChange]
#[\ReturnTypeWillChange]
public function key()
{
return key($this->files);
Expand All @@ -214,7 +214,7 @@ public function key()
*
* @return void
*/
#[ReturnTypeWillChange]
#[\ReturnTypeWillChange]
public function next()
{
next($this->files);
Expand All @@ -227,7 +227,7 @@ public function next()
*
* @return boolean
*/
#[ReturnTypeWillChange]
#[\ReturnTypeWillChange]
public function valid()
{
if (current($this->files) === false) {
Expand All @@ -244,7 +244,7 @@ public function valid()
*
* @return integer
*/
#[ReturnTypeWillChange]
#[\ReturnTypeWillChange]
public function count()
{
return $this->numFiles;
Expand Down
4 changes: 2 additions & 2 deletions src/Filters/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function __construct($iterator, $basedir, Config $config, Ruleset $rulese
*
* @return bool
*/
#[ReturnTypeWillChange]
#[\ReturnTypeWillChange]
public function accept()
{
$filePath = $this->current();
Expand Down Expand Up @@ -132,7 +132,7 @@ public function accept()
*
* @return \RecursiveIterator
*/
#[ReturnTypeWillChange]
#[\ReturnTypeWillChange]
public function getChildren()
{
$filterClass = get_called_class();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ class Something implements JsonSerializable {
*
* @return mixed
*/
#[ReturnTypeWillChange]
#[\ReturnTypeWillChange]
public function jsonSerialize() {}

/**
Expand All @@ -454,15 +454,15 @@ class Something implements JsonSerializable {
* @return mixed
*/

#[ReturnTypeWillChange]
#[\ReturnTypeWillChange]
public function blankLineDetectionA() {}

/**
* Blank line between attribute and function declaration.
*
* @return mixed
*/
#[ReturnTypeWillChange]
#[\ReturnTypeWillChange]

public function blankLineDetectionB() {}

Expand All @@ -472,7 +472,7 @@ class Something implements JsonSerializable {
* @return mixed
*/

#[ReturnTypeWillChange]
#[\ReturnTypeWillChange]

public function blankLineDetectionC() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ class Something implements JsonSerializable {
*
* @return mixed
*/
#[ReturnTypeWillChange]
#[\ReturnTypeWillChange]
public function jsonSerialize() {}

/**
Expand All @@ -454,15 +454,15 @@ class Something implements JsonSerializable {
* @return mixed
*/

#[ReturnTypeWillChange]
#[\ReturnTypeWillChange]
public function blankLineDetectionA() {}

/**
* Blank line between attribute and function declaration.
*
* @return mixed
*/
#[ReturnTypeWillChange]
#[\ReturnTypeWillChange]

public function blankLineDetectionB() {}

Expand All @@ -472,7 +472,7 @@ class Something implements JsonSerializable {
* @return mixed
*/

#[ReturnTypeWillChange]
#[\ReturnTypeWillChange]

public function blankLineDetectionC() {}
}