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

Add ArrayTools to remove value in an array #8

Merged
merged 1 commit into from
Jul 12, 2018
Merged

Conversation

Awkan
Copy link
Contributor

@Awkan Awkan commented Jul 12, 2018

This is a pain to always make a loop to check array values and remove one if needed. This PR creates a new Tools: ArrayTools.
It allows to make some processing in array.

  • The goal of this PR is to easily remove a value contained in an array
  • Update PHPSpec to newer version (+ install bossa expect)
  • Add PHP version explicitly in composer file

@Awkan Awkan requested a review from Nek- July 12, 2018 10:19
@Awkan Awkan force-pushed the feature/array-tools branch 7 times, most recently from 47b3428 to a5d7a5b Compare July 12, 2018 10:53
@@ -5,7 +5,11 @@
"autoload": {
"psr-4": { "Nekland\\Tools\\": "src/" }
},
"require": {
"php": "^5.6 || ^7.0"
Copy link
Member

@Nek- Nek- Jul 12, 2018

Choose a reason for hiding this comment

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

>=5.6 looks better! But nice change idea.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

^5.6 or ^7.0 is covering all PHP versions 😉

composer.json Outdated
"require-dev": {
"phpspec/phpspec": "^2.5"
"phpspec/phpspec": "^3.2",
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a comment:

"_comment": "Not 4.x because we support PHP 5.6"

I'm not sure comments works everywhere, but well if it does, I think that's cool.

@Nek- Nek- merged commit a489270 into master Jul 12, 2018
@Nek- Nek- deleted the feature/array-tools branch July 12, 2018 14:35
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.

2 participants