This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Some PHP frameworks are sensitive to non-fatal PHP errors (even notices). | |
* Those same frameworks are strict about other things, like typing, and only | |
* use strict comparisons. On the other hand, they use count() on scalars | |
* without doing a type check, and rely on the bogus return value of `1`. | |
* The PHP devs considered this legacy behavior of PHP's count (to return `1` | |
* for scalars) a problem, and relying on it a BUG. So in PHP 7.2, the function | |
* still returns the same values, but it now triggers an E_WARNING. | |
* Since those frameworks use count on scalars in various places, now PHP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# git psh(hh) | |
git config --global alias.psh '!git pull --rebase=merges; git push'; | |
git config --global alias.pshhh '!git stash; git pull --rebase=merges; git push; git stash pop'; |
OlderNewer