branch: elpa/php-mode
commit 5d1eb027d54487d72167c55dd81f3fc35b124fa8
Merge: 462b62248f a84469e6a6
Author: USAMI Kenta <tad...@pixiv.com>
Commit: GitHub <nore...@github.com>

    Merge pull request #803 from emacs-php/remove/php-executable-default-path
    
    Removes hardcoding of implicit paths in `php` that are not guaranteed to 
exist
---
 CHANGELOG.md | 2 ++
 lisp/php.el  | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index feb711f9ed..115ef78d60 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,9 +8,11 @@ All notable changes of the PHP Mode 1.19.1 release series are 
documented in this
 
  * Add `readonly` class modifier to [Imenu] ([#802])
  * Add `enum` support to `php-current-class` ([#802])
+ * Remove hardcoding of implicit paths in `php` that are not guaranteed to 
exist ([#803])
 
 [Imenu]: https://www.gnu.org/software/emacs/manual/html_node/emacs/Imenu.html
 [#802]: https://github.com/emacs-php/php-mode/pull/802
+[#803]: https://github.com/emacs-php/php-mode/pull/803
 
 ## [1.27.0] - 2024-12-20
 
diff --git a/lisp/php.el b/lisp/php.el
index 6a2f40f8f3..9ce9eecf92 100644
--- a/lisp/php.el
+++ b/lisp/php.el
@@ -49,7 +49,7 @@
   :link '(url-link :tag "Official Site" 
"https://github.com/emacs-php/php-mode";)
   :link '(url-link :tag "PHP Mode Wiki" 
"https://github.com/emacs-php/php-mode/wiki";))
 
-(defcustom php-executable (or (executable-find "php") "/usr/bin/php")
+(defcustom php-executable (or (executable-find "php") "php")
   "The location of the PHP executable."
   :group 'php
   :tag "PHP Executable"

Reply via email to