Skip to content

fix: Parse error occurs before PHP version check - #6327

Merged
kenjis merged 1 commit into
codeigniter4:developfrom
kenjis:fix-php-version-check
Aug 3, 2022
Merged

fix: Parse error occurs before PHP version check#6327
kenjis merged 1 commit into
codeigniter4:developfrom
kenjis:fix-php-version-check

Conversation

@kenjis

@kenjis kenjis commented Aug 1, 2022

Copy link
Copy Markdown
Member

Description
Fixes #6306

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

If we use new syntax in new PHP version when dropping older PHP version support,
syntax error occurs before the PHP version check.
@kenjis kenjis added the bug Verified issues on the current code behavior or pull requests that will fix them label Aug 1, 2022
Comment thread system/CodeIgniter.php
ob_end_flush(); // @codeCoverageIgnore
}

// Throws new PageNotFoundException and remove exception message on production.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this got scooped up by mistake?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, yes. It is not related to this PR.

@totoprayogo1916

Copy link
Copy Markdown
Contributor

then https://github.com/kenjis/CodeIgniter4/blob/6ac3a7bfe48e72b687c5727cd60f88b9724da4ac/system/Language/en/Core.php#L17
should be removed

@kenjis
kenjis merged commit 71edcc9 into codeigniter4:develop Aug 3, 2022
@kenjis
kenjis deleted the fix-php-version-check branch August 3, 2022 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Verified issues on the current code behavior or pull requests that will fix them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parse error: syntax error, unexpected '_536_000' (T_STRING), expecting ')'

3 participants