Skip to content

Commit

Permalink
fix phpstan advice
Browse files Browse the repository at this point in the history
  • Loading branch information
armetiz committed Jun 3, 2020
1 parent b6c36b9 commit 263b3cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/TimeZoneUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public static function getTimeZone($tzid, Component $vcalendar = null, $failIfUn
// Since PHP 5.5.10, the first bit will be used as the timezone and
// this method will return just GMT+01:00. This is wrong, because it
// doesn't take DST into account.
if (!empty($tzid) && $tzid[0] !== '(') {
if (!empty($tzid) && '(' !== $tzid[0]) {

// PHP has a bug that logs PHP warnings even it shouldn't:
// https://bugs.php.net/bug.php?id=67881
Expand Down

0 comments on commit 263b3cb

Please sign in to comment.