Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix slash_item() erroring when property fetched does not exist on Config\App #6058

Merged
merged 4 commits into from
Jun 2, 2022

Conversation

paulbalandan
Copy link
Member

Description
Supersedes and closes #5973
Fixes #5967

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

@paulbalandan paulbalandan added the bug Verified issues on the current code behavior or pull requests that will fix them label Jun 1, 2022
Comment on lines +397 to +399
$this->assertSame('7200/', slash_item('sessionExpiration')); // int 7200
$this->assertSame('', slash_item('negotiateLocale')); // false
$this->assertSame('1/', slash_item('cookieHTTPOnly')); // true
Copy link
Member

@kenjis kenjis Jun 2, 2022

Choose a reason for hiding this comment

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

I can't think use cases like these, but this behavior is not changed.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah. Just to show these cases are covered by tests.

Copy link
Member

@kenjis kenjis left a comment

Choose a reason for hiding this comment

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

LGTM!

@kenjis kenjis merged commit fbd632d into codeigniter4:develop Jun 2, 2022
@paulbalandan paulbalandan deleted the slash-item branch June 3, 2022 06:30
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.

Bug: slash_item() errors when asked for a configuration item which doesn't exist
4 participants