Skip to content

Releases: laminas/laminas-escaper

2.14.0

24 Oct 10:14
2.14.0
0f7cb97
Compare
Choose a tag to compare

Release Notes for 2.14.0

Feature release (minor)

2.14.0

  • Total issues resolved: 0
  • Total pull requests resolved: 3
  • Total contributors: 3

renovate

Enhancement

Documentation,Enhancement

2.13.0

10 Oct 08:37
2.13.0
af45988
Compare
Choose a tag to compare

Release Notes for 2.13.0

Feature release (minor)

2.13.0

  • Total issues resolved: 1
  • Total pull requests resolved: 4
  • Total contributors: 4

Enhancement

Enhancement,Question

renovate

2.12.0

10 Oct 10:11
2.12.0
ee7a4c3
Compare
Choose a tag to compare

Release Notes for 2.12.0

Feature release (minor)

2.12.0

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

Enhancement

2.11.0

10 Oct 08:23
2.11.0
ab1f99c
Compare
Choose a tag to compare

Release Notes for 2.11.0

Feature release (minor)

2.11.0

  • Total issues resolved: 0
  • Total pull requests resolved: 3
  • Total contributors: 2

Enhancement

renovate

2.10.0

08 Mar 20:16
2.10.0
58af672
Compare
Choose a tag to compare

Release Notes for 2.10.0

Feature release (minor)

2.10.0

  • Total issues resolved: 0
  • Total pull requests resolved: 2
  • Total contributors: 2

Enhancement

2.9.0

02 Sep 17:11
2.9.0
891ad70
Compare
Choose a tag to compare

Release Notes for 2.9.0

Feature release (minor)

2.9.0

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

Enhancement

2.8.0

26 Jun 14:36
2.8.0
2d6dce9
Compare
Choose a tag to compare

Release Notes for 2.8.0

Feature release (minor)

In release 2.7.1, multiple users reported crashes due to the introduction of declare(strict_types=1); in our codebase:

These crashes were related to misuse of the library on the caller side, since this library always expected string values as inputs for most its methods.

This release replaces declared input type declarations with native type declarations provided by PHP.

The reason why this was done, is that:

  • since PHP 7.2, and specifically the Parameter Type Widening RFC by @kelunik, it is safe to declare stricter types in parent interfaces/types, whereas subtypes can completely omit the parameter type. This library supports PHP 7.3 and newer, which means that existing subclass implementations of the Escaper that do not declare string parameters in their methods will continue to work as expected
  • the new string type declaration will lead to more shallow stack traces in the case of invalid input, which will further help avoiding misunderstanding of the issue, like what happened in #20. Developers should be able to determine more clearly that a non-string was given as input
  • in case of developers still passing invalid input to laminas/laminas-escaper, should they not use declare(strict_types=1) in their code, then there will be an implicit conversion performed by the engine, as specified by PHP 7.0 in the Scalar Type Hints v5 by @ircmaxell

This release therefore:

  • increases strictness in this library
  • increases compatibility with poorly written / reviewed code

2.8.0

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

Enhancement

2.7.1

24 Jun 16:46
2.7.1
67dac07
Compare
Choose a tag to compare

Release Notes for 2.7.1

2.7.x bugfix release (patch)

2.7.1

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

Enhancement

2.7.0

17 Nov 21:26
2.7.0
5e04bc5
Compare
Choose a tag to compare

2.7.0 - 2020-11-17

Added

  • #10 Adds Psalm as QA tool

  • #9 Adds PHP 8.0 support


Release Notes for 2.7.0

next feature release (minor)

2.7.0

  • Total issues resolved: 0
  • Total pull requests resolved: 2
  • Total contributors: 2

Enhancement,hacktoberfest-accepted