Skip to content
This repository was archived by the owner on May 4, 2021. It is now read-only.
This repository was archived by the owner on May 4, 2021. It is now read-only.

Silence warnings #10

@jbrnd

Description

@jbrnd

The following changes should be made to Auth/Yubico.php to silence some warnings PHP gives with strict error reporting:

$ch[$handle] = $handle;

on line 331 should be

$ch[(int)$handle] = $handle;

and on line 431:

if ($replay) return PEAR::raiseError('REPLAYED_OTP');

should be

if ($replay) return (new PEAR)->raiseError('REPLAYED_OTP');

And finally, line 433:

return (PEAR::raiseError($status);

should be

return ((new PEAR)->raiseError($status);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions