When the permissions on a file change in a commit, Git will include this in the diff. Git refers to this as a mode change. When I’m looking at a “git diff” (or specifically a “git diff –name-only” where I’m looking for a list of files that have been changed), I often want to ignore mode changes (a.k.a. permission changes). By adding “-G.” to the command, mode changes will be ignored.
When I tried to run Local by Flywheel I received the notification, “Regenerating Machine Certificates:
Local detected invalid Docker Machine TLS certificates and is fixing them now.” over and over again making Local by Flywheel unusable.
Ideally, the PHP package manager Composer can update itself with the command composer self-update Unfortunately, when I ran this command I got [RuntimeException] SHA384 is not supported by your openssl extension, could not verify the phar file integrity This is a known issue (see Composer Issue 7669) but unfortunately the thread does not offer a […]
Recently, I tried to import a site into Local by Flywheel and it failed with the message, “TypeError: Cannot read property ‘devMode’ on null”. It turns out the site export was created with “Local Lightning” while I’m using the classic Local by Flywheel. By modifying the local-site.json file in the import, I was still able to import the site.
By default phpcs does NOT display the relevant name of the sniff when a sniff fails. By adding the ‘-s’ argument, the sniff names will be displayed. See the following from ‘phpcs –help’. Alternatively, this can be added to your PHP CodeSniffer XML Ruleset.
Sometimes after running git stash pop, I get a conflict warning and I want to discard any changes to a file. However, when I try to checkout the file I get an error message. Using reset and then checkout, lets me accomplish this goal.
I’m currently reading Neal Stephenson’s “Fall; or, Dodge in Hell” and it includes a description of a band called Pompitus Bombasticus.
This seemed like the perfect music to listen to when I’m programming. I was disappointed to find out Pompitus Bombasticus does not exist. However, if you too are in search of the mythical Pompitus Bombasticus, I suggest you check out the group Two Steps from Hell (which does actually exist).
When setting up a new site using PHPUnit 8.x and PHP 7.2, I got the error message: setUp() must be compatible with PHPUnit\Framework\TestCase::setUp Because we can now define the method as returning no value (with :void) and this is part of the method definition starting in PHPUnit 8.0.0, we need to add this in our […]
When using the WordPress plugin [The Events Calendar](https://theeventscalendar.com/) by Modern Tribe the default link in the calendar will point to the Event page. However, sometimes we want to point this link to the Event Website value (which we can set when creating the event). This is the code I use to do this.