diff options
author | Paragon Initiative Enterprises <security@paragonie.com> | 2017-02-03 13:36:43 -0500 |
---|---|---|
committer | Paragon Initiative Enterprises <security@paragonie.com> | 2017-02-03 13:36:43 -0500 |
commit | 736f6b0f70338b48d0cb597f6f9c5272fca254e1 (patch) | |
tree | 5f0927c80990c865530fd59bca9fa87de0c618cc | |
parent | 1b6a67c7c809c0392e212220bc364edcba67fc4c (diff) | |
download | random_compat-736f6b0f70338b48d0cb597f6f9c5272fca254e1.zip random_compat-736f6b0f70338b48d0cb597f6f9c5272fca254e1.tar.gz random_compat-736f6b0f70338b48d0cb597f6f9c5272fca254e1.tar.bz2 |
Add missing files.
-rw-r--r-- | psalm-autoload.php | 8 | ||||
-rw-r--r-- | psalm.xml | 19 |
2 files changed, 27 insertions, 0 deletions
diff --git a/psalm-autoload.php b/psalm-autoload.php new file mode 100644 index 0000000..7479ef9 --- /dev/null +++ b/psalm-autoload.php @@ -0,0 +1,8 @@ +<?php + +require_once 'lib/byte_safe_strings.php'; +require_once 'lib/cast_to_int.php'; +require_once 'lib/error_polyfill.php'; +require_once 'lib/random.php'; + +$int = random_int(0, 65536); diff --git a/psalm.xml b/psalm.xml new file mode 100644 index 0000000..e1a0ab0 --- /dev/null +++ b/psalm.xml @@ -0,0 +1,19 @@ +<?xml version="1.0"?> +<psalm + autoloader="psalm-autoload.php" + stopOnFirstError="false" + useDocblockTypes="true" +> + <projectFiles> + <directory name="lib" /> + </projectFiles> + <issueHandlers> + <DuplicateClass errorLevel="info" /> + <UndefinedClass errorLevel="info" /> + <FailedTypeResolution errorLevel="info" /> + <InvalidArgument errorLevel="info" /> + <InvalidOperand errorLevel="info" /> + <InvalidPropertyAssignment errorLevel="info" /> + <TypeCoercion errorLevel="info" /> + </issueHandlers> +</psalm> |