Skip to content

Commit 57eb9f9

Browse files
Merge pull request #3 from rutgerrademaker/master
Fix issue where deprecation notices were thrown in php 8
2 parents 799b3f5 + 76ee1d9 commit 57eb9f9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## 1.1.2
8+
### Fixed
9+
- Issue where in PHP 8, Deprecation Notices were thrown about missing return types.
10+
711
## 1.1.1
812
### Changed
913
- Package is now also installable in PHP 8.

src/UnixFileMappingReader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function (string $mapping): FileMappingInterface {
8484
*
8585
* @return void
8686
*/
87-
public function next()
87+
public function next(): void
8888
{
8989
$this->getMappings()->next();
9090
}
@@ -114,7 +114,7 @@ public function valid(): bool
114114
*
115115
* @return void
116116
*/
117-
public function rewind()
117+
public function rewind(): void
118118
{
119119
$this->getMappings()->rewind();
120120
}

0 commit comments

Comments
 (0)