wiki.techinc.nl/.phan/stubs
Máté Szabó a80631ea0c Pbkdf2Password: Fix error handling on PHP 8
With PHP 8, the hash_pbkdf2 function raises a ValueError when invoked with an
unknown algorithm, as opposed to its previous behavior where it would raise an
E_WARNING and return a non-string value.

This patch updates the Pbkdf2Password class to handle this exception and
re-throw it as our PasswordError exception. It also adds a Phan stub for the
ValueError exception if it is not defined to avoid superfluous analysis errors.

Bug: T248925
Change-Id: I7e0ec4e95598af27fee8282c7e53bca5378e506a
2020-04-07 18:46:31 +02:00
..
excimer.php
mail.php Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
password.php Remove traling double newlines from text files 2019-10-23 21:17:43 +02:00
README
ValueError.php Pbkdf2Password: Fix error handling on PHP 8 2020-04-07 18:46:31 +02:00
wikidiff.php Update wikidiff2 stubs 2019-10-03 11:38:19 +10:00

These stubs describe how code that is not available at analysis time should be
used. No implementations are necessary, just define the classes and their
methods and use phpdoc to describe what arguments are allowed.