Skip to content

Releases: emacs-php/php-mode

Version 1.22.1 Fix for Emacs 27(HEAD)

10 Nov 12:51
Compare
Choose a tag to compare

This release is a minor modified version of the 1.22.x series.
PHP Mode 2.0 is planned to be released in January 2020.

Fixed

  • Fix usas of rx-form (#580, thank you @cmack)
  • Fix php-mode-coding-style custom variable (#581)
  • Fix unexpected indentation of (return typed) closures written in arguments (#585)

Version 1.22.0

27 Sep 14:44
58de9a7
Compare
Choose a tag to compare

This release is positioned as the last minor version of the PHP Mode 1.x series.
PHP Mode 2.0 is planned to be released in January 2020.

Added

  • Improve PHP 7 and PHPDoc support
    • Highlighting typed property (#545)
    • Highlighting {@inheritdoc} tag (#566)
    • Highlighting multiple catch (#567)
  • Add new php-class face (#545)
  • Add new php-run-builtin-web-server command for invoke php -S buitin server (#548)
  • Add new php-copyit-fqsen command for kill current method FQSEN (#561)
  • Apply lineup cascaded call (method chain separated by new line) for all styles (#563, #572)

Changed

  • Loose HTML template detection algorithm (#558)
  • Move php-mode-test.el into tests directory (#559)
    • php-mode-autoloads.el no longer includes php-mode-test
  • Modify syntax-entry $ to "_" from "'" (#565)
  • Make php-set-style display only styles that inherited "php" (#573)

Fixed

  • Fix default major mode for *.phpt file as php-default-major-mode (#542)
  • prevent recursion in php-syntax-propertize-extend-region ([$556], thanks @herbertjones)
  • Fix call run-hooks in set-style (#571)

v1.21.4

28 May 16:41
a8ee6ce
Compare
Choose a tag to compare

This version contains unobtrusive changes for future compatibility. Also, forward-page / backward-page may improve your operation. Thank you @takeokunn.

Added

  • A new command php-mode-maybe has been added to improve the compatibility of Blade templates and HTML templates with Web Mode. (#532)
  • A new custom variable php-mode-page-delimiter is added, which is assigned to page-delimiter in PHP-Mode. It allows you to move smoothly to the previous and subsequent definition statements with forward-page (C-x C-[) and backward-page (C-x C-]). (#540 by @takeokunn)

Change

  • php-maybe-mode and .php files are associated with auto-mode-alist instead of php-mode (#532)
  • Compatibility with poly-php has been improved. This has not yet been officially released.

Deprecated

  • PHP Mode does not support phpt files . Consider installing the phpt-mode package. This mode is a wrapper around Polymode based PHP-Mode.

v1.21.3 - Performance improvement for large files

25 May 07:01
f1938b9
Compare
Choose a tag to compare

This version includes both PHP syntax support enhancements and performance improvements. See https://github.com/emacs-php/php-mode/projects/1 for all issues for this release. Also, @mallt has helped me improve it with a number of issues. thank you very much.

Added

  • Added new Faces to display PHP syntax
    • php-constant-assign
    • php-magical-constant
    • php-errorcontrol-op
  • Some funtions have been split into features such as php.el, php-face.el and php-mode-debug.el.

Fixed

  • Improved performance when opening large files (#491, #531)

Changed

  • Syntax highlighting has been adjusted

Removed

v1.21.2 - Support PHP 7.3, 7.4 and Emacs 26.2

11 May 10:00
1e16e20
Compare
Choose a tag to compare

It officially supports PHP 7.3 and Emacs 26.2.
Many improvements have been received from @sergeyklay, thank you!

Added

Fixed

  • Function php-beginning-of-defun should return non-nil on success (#503)
  • Fixed an error that occurred in some heredoc/nowdoc (#496)

Changed

  • Support PHP 7.3 heredoc/nowdoc (#496)
  • Minor optimization of font-lock regular expression (#510)

v1.21.1

01 Apr 17:46
Compare
Choose a tag to compare

Changed

  • Fixed an error that occurred in Emacs 27(development)
  • Modify URL of PHP web site
  • Fix highlighting of static method calls (#499 Thanks @fabacino!)

v1.21.0 - No longer run c-mode-hook

09 Jan 13:23
37ab87a
Compare
Choose a tag to compare

A minor change from the previous version, but this version has BC brake about c-mode-hook.
In past versions we needed strange hacks for co-existence with c-mode.

Added

  • Add php customize group.
    • This group is positioned above php-mode.
    • This group was originally planned to be included in v1.20.0.
  • Add php-mode-disable-c-mode-hook custom variable.
    • Setting this variable to nil will restore the behavior of c-mode-hook up to the previous version.

Changed

  • php-mode initialization no longer executes hooks for c-mode.
    • If you want to return to the same behavior as the conventional PHP-Mode, set nil to php-mode-disable-c-mode-hook.

v1.20.0

09 Jan 12:47
a459051
Compare
Choose a tag to compare

Start preparing for major refactoring in major mode.

Added

  • Add php-project variables for workflow (#488)
    • The following variables are reserved as file/directory local variables.
      • php-project-repl
      • php-project-unit-test
      • php-project-deploy
      • php-project-build
      • php-project-server-start

Changed

  • Improve code highlight
    • Fix highlighting of callable keyword (#471 by @fabacino)
    • Highlight the ? character for nullable type hints and return types (#482 by @fabacino)
  • Modify "customize group" and variables
    • Add php-mode group and some variables belong to new group (#486)
      • php-default-facephp-mode-default-face
      • php-speedbar-configphp-mode-speedbar-config
      • php-template-compatibilityphp-mode-template-compatibility
      • php-lineup-cascaded-callsphp-mode-lineup-cascaded-calls
      • php-extra-constantsphp-mode-extra-constants
      • php-do-not-use-semantic-imenuphp-mode-do-not-use-semantic-imenu
  • Modify documents and copyright
  • Some refactors
    • Fix style and suppress warning in compile #485

v1.19.1 Last version supporting Emacs 24.2 or earlier

12 May 12:56
Compare
Choose a tag to compare

Added

  • Add some functions/variables in php-project package
    • php-project-get-php-executable (#436)
    • php-project-get-phan-executable (#436)
  • Add php-debug command for reporting a bug

Changed

  • Add highlighting of return types for abstract functions (#461 by @fabacino)

Fixed

  • Fix c-anchored-cpp-prefix in Emacs 26 (#453)
  • Fix (re-implemteed) php-complete-function (#454)
  • Fix some problem of php-set-style (disabled on default)
    • Fix lazy evaluation of php-set-style (#444)
    • Do not use php-mode-enable-backup-style-variables in initialize (#452)
    • Temporarily disable php-mode-enable-project-coding-style (#450)
  • Fix heredoc/nowdoc syntax problem (#440)
  • Delete duplicate font locks with keywords not related to PHP language (#432)
  • Make php-project-root variable accept a string (#458)

PHP Mode version 1.19.0

05 Mar 18:44
Compare
Choose a tag to compare
v1.19.0

[Version] Bump version 1.19.0