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 type juggling notes for list() and array destructuring #3680

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 24, 2024

  1. Fix type juggling notes for list() and array destructuring

    Update notes about the handling of missing keys and non-arrays
    during array destructuring to match the behavior seen on
    3v4l.org, which doesn't issue a warning or notice in some cases
    where the documentation claims it does. Also update list() docs
    to provide the same information.
    
    list():
    * missing key: https://3v4l.org/bYBt6
    * destructuring an integer: https://3v4l.org/7lNhK
    * a boolean: https://3v4l.org/p5LDd
    * a string: https://3v4l.org/KHSAH
    * null: https://3v4l.org/lk1iu
    
    array notation:
    * missing key: https://3v4l.org/KCiTC
    * destructuring an integer: https://3v4l.org/louVG
    * a boolean: https://3v4l.org/SWL5L
    * a string: https://3v4l.org/aK90L
    * null: https://3v4l.org/Y8cOY
    
    Fixes php#3640.
    tgr committed Aug 24, 2024
    Configuration menu
    Copy the full SHA
    ad66175 View commit details
    Browse the repository at this point in the history