diff --git a/.gitignore b/.gitignore index 039afea6..a73932c0 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ build composer.lock docs/_site vendor -/nbproject/private/ \ No newline at end of file +/nbproject/private/ +.php_cs.cache diff --git a/src/AbstractCsv.php b/src/AbstractCsv.php index 101dcbe1..b2594b82 100644 --- a/src/AbstractCsv.php +++ b/src/AbstractCsv.php @@ -117,7 +117,7 @@ public function __clone() * * @return static */ - public static function createFromFileObject(SplFileObject $file): self + public static function createFromFileObject(SplFileObject $file) { return new static($file); } @@ -129,7 +129,7 @@ public static function createFromFileObject(SplFileObject $file): self * * @return static */ - public static function createFromStream($stream): self + public static function createFromStream($stream) { return new static(new Stream($stream)); } @@ -141,7 +141,7 @@ public static function createFromStream($stream): self * * @return static */ - public static function createFromString(string $content): self + public static function createFromString(string $content) { return new static(Stream::createFromString($content)); } @@ -155,7 +155,7 @@ public static function createFromString(string $content): self * * @return static */ - public static function createFromPath(string $path, string $open_mode = 'r+', $context = null): self + public static function createFromPath(string $path, string $open_mode = 'r+', $context = null) { return new static(Stream::createFromPath($path, $open_mode, $context)); } diff --git a/src/Reader.php b/src/Reader.php index 087ce90a..727520c5 100644 --- a/src/Reader.php +++ b/src/Reader.php @@ -64,7 +64,7 @@ class Reader extends AbstractCsv implements Countable, IteratorAggregate, JsonSe /** * {@inheritdoc} */ - public static function createFromPath(string $path, string $open_mode = 'r', $context = null): AbstractCsv + public static function createFromPath(string $path, string $open_mode = 'r', $context = null) { return new static(Stream::createFromPath($path, $open_mode, $context)); } diff --git a/src/Stream.php b/src/Stream.php index ec4968d9..20338a2e 100644 --- a/src/Stream.php +++ b/src/Stream.php @@ -167,7 +167,7 @@ public function __debugInfo() * * @return static */ - public static function createFromPath(string $path, string $open_mode = 'r', $context = null): self + public static function createFromPath(string $path, string $open_mode = 'r', $context = null) { $args = [$path, $open_mode]; if (null !== $context) { @@ -192,7 +192,7 @@ public static function createFromPath(string $path, string $open_mode = 'r', $co * * @return static */ - public static function createFromString(string $content): self + public static function createFromString(string $content) { $resource = fopen('php://temp', 'r+'); fwrite($resource, $content);