mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-06 19:40:08 +02:00
This commit introduces a new diagnostics feature which is executed when the app boots. When the app boots, the integrity of the PHP symlinks are checked to ensure that all symlinks correctly link to a valid PHP version. If any links to an incorrect PHP version, then those outdated or incorrect symlinks will be removed. For example, if `php@8.2` links to `../Cellar/php/8.3.0` then that is an obvious reason for that symlink to be purged because it links to the incorrect version. (This example behaviour has been noted in #270.) This occurs prior to the rest of the startup process, so this way no incorrect PHP versions can pop up in the version switcher, and no incorrect PHP version is reported as being installed when managing installed PHP versions.