
You're probably still showing the old version. Adjust your PATHĪfter you install the new version of PHP, verify the version by typing in the Terminal: This will install the new version of PHP on your computer. If you prefer an earlier PHP have an OS version before 10.10 then reference this page.


If your Mac has on OS of 10.10 or greater, go for it. Upgrade PHP on your MacĪccording to the PHP downloads page, the current stable version at the time of this post is 7.2.

In this post I want to share with you not only how to upgrade your Mac to PHP 7, but how to adjust your PATH to recognize it, and update VS Code to PHP7. In the general tab, you should see the Visual Studio Code application listed with the message that it's blocked.After attempting to try out the new null coalescing operator in PHP 7, I realized that my Macbook Pro was still on 5.6. To do this, go to your System Preferences and select Security & Privacy, the following window will appear: Open from Security & PreferencesĪlternatively, you can open the app from the Security & Privacy window. Open the terminal and run the following command: xattr -d /Applications/Visual\ Studio\ Code.appĪfter removing the attribute, you should be able to open the application. If through the easy way it didn't work, you can easily force the application to open normally removing the quarantine attribute that is added to file after the system tries to open it using xattr in the command line. Remove quarantine attribute from application using xattr After that, the application should start without inconvenients:ī. This will open the same exception window, however you should now see the option to open the application anyway. Move VSCode to Applications and open it through the context menuĪs first option, you can simply move the VSCode application to the Applications directory of your Mac and then, simply do right click on the app and click on open: In this article we will show you how to bypass this issue using 3 options. So the current installation of VSCode still needs to be updated by Microsoft, however until that happens and unfortunately you are testing the new os and need to run VSCode, the solution for this problem though, is quite simple. With the introduction of the latest MacOS version (Catalina), this system requires all applications to be notarized by apple.
