PHP Classes

File: psalm-above-3.xml

Recommend this page to a friend!
  Classes of Scott Arciszewski   PHP Sodium Compat   psalm-above-3.xml   Download  
File: psalm-above-3.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Sodium Compat
Cryptographic functions of libsodium in pure PHP
Author: By
Last change: Fix variable names to match ext/sodium

This is technically an API break for PHP 8 projects.
However, this polyfill always targeted PHP 5, 7.0, and 7.1. You shouldn't need it on 7.2+.

The end result of this change is that you should be able to write code that uses named parameters on PHP 8 and have it work regardless of ext/sodium being installed or not (provided you import sodium_compat via composer).

Additionally, we include lib/ in the psalm checks (if applicable).

This will need a new minor version (v1.19.0).
Update code for new psalm
Use Github actions instead of Travis CI
Fix Psalm nits
Date: 1 year ago
Size: 1,651 bytes
 

Contents

Class file image Download
<?xml version="1.0"?> <psalm useDocblockTypes="true" > <projectFiles> <directory name="src" /> <directory name="lib" /> </projectFiles> <issueHandlers> <InvalidFunctionCall errorLevel="suppress" /> <!-- Previous issue type is suppressed because we have to use a string as a function name for PHP 5.2 compatibility. When testing, be sure to change this to "info". --> <UndefinedFunction errorLevel="info" /> <!-- Inconsistently erroneous. --> <DuplicateClass errorLevel="info" /> <!-- Psalm isn't correctly identifying the guard conditions that return early if a class already exists. --> <RedundantConditionGivenDocblockType errorLevel="suppress" /> <TooFewArguments errorLevel="info" /> <DocblockTypeContradiction errorLevel="suppress" /> <RedundantCondition errorLevel="info" /> <!-- Redundancy is good for PHP <7 --> <TypeDoesNotContainType errorLevel="info" /> <!-- This mostly fails on `PHP_INT_SIZE === 4` --> <InternalMethod errorLevel="suppress" /> <!-- We mark methods as internal. --> <PossiblyNullArgument errorLevel="suppress" /> <!-- Not interesting --> <RedundantCast errorLevel="info" /> <UnnecessaryVarAnnotation errorLevel="suppress" /> <UnusedVariable errorLevel="info" /> <UnusedFunctionCall errorLevel="info" /> </issueHandlers> </psalm>