Skip to content

Commit

Permalink
Fix deprecation on PHP (#382)
Browse files Browse the repository at this point in the history
Co-authored-by: andaris.at <geocaching@andaris.at>
Co-authored-by: Markus Poerschke <markus@poerschke.nrw>
  • Loading branch information
3 people authored Apr 26, 2022
1 parent c77d802 commit b8535a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Deprecation message occuring on an OOTB Symfony 5.4 on PHP 7.4 [#382](https://github.com/markuspoerschke/iCal/pull/382)

## [2.5.0] - 2022-02-13

### Added
Expand Down
3 changes: 2 additions & 1 deletion src/Presentation/Component.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Generator;
use IteratorAggregate;
use ReturnTypeWillChange;
use Traversable;

class Component implements IteratorAggregate
{
Expand Down Expand Up @@ -58,7 +59,7 @@ public function __toString(): string
}

#[ReturnTypeWillChange]
public function getIterator()
public function getIterator(): Traversable
{
return $this->getContentLines();
}
Expand Down

0 comments on commit b8535a1

Please sign in to comment.