Skip to content

Fix trailing commas #121

Fix trailing commas

Fix trailing commas #121

Triggered via push May 22, 2024 14:36
Status Success
Total duration 2m 52s
Artifacts

php.yml

on: push
Matrix: unit-tests-linux
Matrix: unit-tests-windows
Code coverage
7s
Code coverage
Cleanup artifacts
4s
Cleanup artifacts
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 4 warnings
MissingClassConstType: src/Auth/Source/Radius.php#L29
src/Auth/Source/Radius.php:29:18: MissingClassConstType: Class constant "SimpleSAML\Module\radius\Auth\Source\Radius::RADIUS_USERNAME" should have a declared type. (see https://psalm.dev/359)
MissingClassConstType: src/Auth/Source/Radius.php#L30
src/Auth/Source/Radius.php:30:18: MissingClassConstType: Class constant "SimpleSAML\Module\radius\Auth\Source\Radius::RADIUS_VENDOR_SPECIFIC" should have a declared type. (see https://psalm.dev/359)
MissingClassConstType: src/Auth/Source/Radius.php#L31
src/Auth/Source/Radius.php:31:18: MissingClassConstType: Class constant "SimpleSAML\Module\radius\Auth\Source\Radius::RADIUS_NAS_IDENTIFIER" should have a declared type. (see https://psalm.dev/359)
PossiblyUndefinedArrayOffset: src/Auth/Source/Radius.php#L154
src/Auth/Source/Radius.php:154:38: PossiblyUndefinedArrayOffset: Possibly undefined array key $_SERVER['SERVER_ADDR'] on array{APP_DEBUG?: bool|string, APP_ENV?: string, AUTH_TYPE?: non-empty-string, CONTENT_LENGTH?: string, CONTENT_TYPE?: string, DOCUMENT_ROOT?: non-empty-string, FCGI_ROLE?: non-empty-string, GATEWAY_INTERFACE?: non-empty-string, HOME?: non-empty-string, HTTPS?: string, HTTP_ACCEPT?: non-empty-string, HTTP_ACCEPT_CHARSET?: non-empty-string, HTTP_ACCEPT_ENCODING?: non-empty-string, HTTP_ACCEPT_LANGUAGE?: non-empty-string, HTTP_CACHE_CONTROL?: non-empty-string, HTTP_CDN_LOOP?: non-empty-string, HTTP_CF_CONNECTING_IP?: non-empty-string, HTTP_CF_IPCOUNTRY?: non-empty-string, HTTP_CF_VISITOR?: non-empty-string, HTTP_CLIENT_IP?: non-empty-string, HTTP_CONNECTION?: non-empty-string, HTTP_COOKIE?: non-empty-string, HTTP_DNT?: non-empty-string, HTTP_HOST?: non-empty-string, HTTP_PRIORITY?: non-empty-string, HTTP_REFERER?: non-empty-string, HTTP_SEC_CH_UA?: non-empty-string, HTTP_SEC_CH_UA_MOBILE?: non-empty-string, HTTP_SEC_CH_UA_PLATFORM?: non-empty-string, HTTP_SEC_FETCH_DEST?: non-empty-string, HTTP_SEC_FETCH_MODE?: non-empty-string, HTTP_SEC_FETCH_SITE?: non-empty-string, HTTP_SEC_FETCH_USER?: non-empty-string, HTTP_UPGRADE_INSECURE_REQUESTS?: non-empty-string, HTTP_USER_AGENT?: non-empty-string, HTTP_X_FORWARDED_FOR?: non-empty-string, HTTP_X_FORWARDED_PROTO?: non-empty-string, HTTP_X_REAL_IP?: non-empty-string, ORIG_PATH_INFO?: non-empty-string, PATH?: non-empty-string, PATH_INFO?: non-empty-string, PATH_TRANSLATED?: non-empty-string, PHP_AUTH_DIGEST?: non-empty-string, PHP_AUTH_PW?: non-empty-string, PHP_AUTH_USER?: non-empty-string, PHP_SELF?: non-empty-string, QUERY_STRING?: string, REDIRECT_REMOTE_USER?: non-empty-string, REDIRECT_STATUS?: non-empty-string, REMOTE_ADDR?: non-empty-string, REMOTE_HOST?: non-empty-string, REMOTE_PORT?: string, REMOTE_USER?: non-empty-string, REQUEST_METHOD?: non-empty-string, REQUEST_SCHEME?: non-empty-string, REQUEST_TIME?: int<1716388653, max>, REQUEST_TIME_FLOAT?: float, REQUEST_URI?: non-empty-string, SCRIPT_FILENAME?: non-empty-string, SCRIPT_NAME?: non-empty-string, SERVER_ADDR?: non-empty-string, SERVER_ADMIN?: non-empty-string, SERVER_NAME?: non-empty-string, SERVER_PORT?: non-empty-string, SERVER_PROTOCOL?: non-empty-string, SERVER_SIGNATURE?: non-empty-string, SERVER_SOFTWARE?: non-empty-string, USER?: non-empty-string, argc?: int<1, max>, argv?: non-empty-list<string>, ...<non-empty-string, string>} (see https://psalm.dev/167)
PossiblyUndefinedArrayOffset: src/Auth/Source/Radius.php#L208
src/Auth/Source/Radius.php:208:57: PossiblyUndefinedArrayOffset: Possibly undefined array key $decomposed[1] on list{0: string, 1?: string} (see https://psalm.dev/167)
TooManyArguments: src/Auth/Source/Radius.php#L240
src/Auth/Source/Radius.php:240:33: TooManyArguments: Too many arguments for the number of placeholders in sprintf (see https://psalm.dev/026)
RedundantFunctionCall: src/Auth/Source/Radius.php#L240
src/Auth/Source/Radius.php:240:33: RedundantFunctionCall: Argument 1 of sprintf does not contain any placeholders (see https://psalm.dev/280)
Quality control
Process completed with exit code 2.
PropertyNotSetInConstructor: src/Auth/Source/Radius.php#L41
src/Auth/Source/Radius.php:41:20: PropertyNotSetInConstructor: Property SimpleSAML\Module\radius\Auth\Source\Radius::$hostname is not defined in constructor of SimpleSAML\Module\radius\Auth\Source\Radius or in any private or final methods called in the constructor (see https://psalm.dev/074)
PropertyNotSetInConstructor: src/Auth/Source/Radius.php#L46
src/Auth/Source/Radius.php:46:17: PropertyNotSetInConstructor: Property SimpleSAML\Module\radius\Auth\Source\Radius::$port is not defined in constructor of SimpleSAML\Module\radius\Auth\Source\Radius or in any private or final methods called in the constructor (see https://psalm.dev/074)
PropertyNotSetInConstructor: src/Auth/Source/Radius.php#L51
src/Auth/Source/Radius.php:51:20: PropertyNotSetInConstructor: Property SimpleSAML\Module\radius\Auth\Source\Radius::$secret is not defined in constructor of SimpleSAML\Module\radius\Auth\Source\Radius or in any private or final methods called in the constructor (see https://psalm.dev/074)
PropertyNotSetInConstructor: src/Auth/Source/Radius.php#L77
src/Auth/Source/Radius.php:77:17: PropertyNotSetInConstructor: Property SimpleSAML\Module\radius\Auth\Source\Radius::$vendorType is not defined in constructor of SimpleSAML\Module\radius\Auth\Source\Radius or in any private or final methods called in the constructor (see https://psalm.dev/074)