Changeset 695 for trunk/bin


Ignore:
Timestamp:
Aug 8, 2019 10:01:13 PM (5 years ago)
Author:
anonymous
Message:

Change usage of is_a($x, 'X') to $x instance of X

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/user.cli.php

    r686 r695  
    6161}
    6262
    63 if (!isset($db) || !is_a($db, 'DB')) {
     63if (!isset($db) || !($db instanceof \DB)) {
    6464    echo "This project doesn't have a \$db object.\n";
    6565    exit(1);
    6666}
    6767
    68 if (!isset($auth) || !is_a($auth, 'Auth_SQL')) {
     68if (!isset($auth) || !($auth instanceof \Auth_SQL)) {
    6969    echo "This project doesn't have an \$auth object.\n";
    7070    exit(1);
Note: See TracChangeset for help on using the changeset viewer.