Skip to content

Use square bracket syntax to modify array#797

Merged
binsky08 merged 1 commit intonextcloud:masterfrom
shdehnavi:square_bracket_syntax
Jul 16, 2023
Merged

Use square bracket syntax to modify array#797
binsky08 merged 1 commit intonextcloud:masterfrom
shdehnavi:square_bracket_syntax

Conversation

@shdehnavi
Copy link
Contributor

square bracket syntax is used instead of the array_push method, if we want to add one element to the array, it's better to use $array[] = because in that way there is no overhead of calling a function.

@binsky08 binsky08 added this to the 2.4.7 milestone Jul 6, 2023
Copy link
Collaborator

@animalillo animalillo left a comment

Choose a reason for hiding this comment

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

Lovely! Thank you!

@shdehnavi
Copy link
Contributor Author

@animalillo Shall i need to do anything else to merge this PR?

@binsky08 binsky08 merged commit 6739246 into nextcloud:master Jul 16, 2023
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