Skip to content

Improve the default value format in incompatible signature error messages #5361

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

Conversation

kocsismate
Copy link
Member

@kocsismate kocsismate commented Apr 9, 2020

As a follow up for #5353, the changes are related to parameter default values of user-land functions:

  • lowercased NULL to null
  • Array is now shown as <array>

I'm not 100% sure about the second change, but I like its consistency with <expression> and <default>. That said, I'm interested in other solutions as well to make Array consistent with the other placeholders.

@kocsismate kocsismate force-pushed the incompatible-signature-error-message-format branch from 87f1cc5 to 18dbd2d Compare April 10, 2020 14:39
Copy link
Contributor

@carusogabriel carusogabriel left a comment

Choose a reason for hiding this comment

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

Small changes that amazes me :)

@kocsismate
Copy link
Member Author

@carusogabriel I think PHP 8 will have a lot of these, so it's a great feeling :) My current favourite one is the unclosed character syntax error stuff ^^

@php-pulls php-pulls closed this in fe9860c Apr 10, 2020
@kocsismate kocsismate deleted the incompatible-signature-error-message-format branch April 10, 2020 20:52
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.

3 participants