Skip to content

Update RRule.php - #170

Closed
Krakozaber wants to merge 1 commit into
rlanvin:masterfrom
Krakozaber:patch-1
Closed

Update RRule.php#170
Krakozaber wants to merge 1 commit into
rlanvin:masterfrom
Krakozaber:patch-1

Conversation

@Krakozaber

Copy link
Copy Markdown

FIX: with message 'The return value of method DateTimeImmutable::setTimezone() should either be used or intentionally ignored by casting it as (void), as DateTimeImmutable::setTimezone() does not modify the object itself'

in /mnt/data/www/pirs/vendor/rlanvin/php-rrule/src/RRule.php:749

FIX: with message 'The return value of method DateTimeImmutable::setTimezone() should either be used or intentionally ignored by casting it as (void), as DateTimeImmutable::setTimezone() does not modify the object itself'

in /mnt/data/www/pirs/vendor/rlanvin/php-rrule/src/RRule.php:749
@Krakozaber

Copy link
Copy Markdown
Author

@rlanvin Is this package alive?

@rlanvin

rlanvin commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Hello, Yes - I just don't have a lot of time to dedicate to maintenance at the moment. Can you tell me more about the context of this error? Maybe add a test to reproduce it? Your description is a bit vague at the moment.

@Krakozaber

Copy link
Copy Markdown
Author

Hello, Yes - I just don't have a lot of time to dedicate to maintenance at the moment. Can you tell me more about the context of this error? Maybe add a test to reproduce it? Your description is a bit vague at the moment.

Just $date->setTimeZone($this->dtstart->getTimezone()); should be written to a variable

@rlanvin

rlanvin commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Thank you for reporting this. I'm closing your PR in favour of PR #171 which covers more cases and includes tests.

@rlanvin rlanvin closed this Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants