AppStateESS/InternshipInventory

View on GitHub

Showing 6,675 of 6,675 total issues

Call to method newDB from undeclared class \phpws2\Database
Open

        $db = Database::newDB();
Severity: Critical
Found in class/Command/AgreementTypeRest.php by phan

Call with 1 arg(s) to \Intern\EmergencyContact::getName() which only takes 0 arg(s) defined at /code/class/EmergencyContact.php:96
Open

            $name = $contact->getName($copyId);

Call to method initModClass from undeclared class \PHPWS_Core
Open

            PHPWS_Core::initModClass('users', 'Permission.php');
Severity: Critical
Found in boost/update.php by phan

Call to method registerPermissions from undeclared class \Users_Permission
Open

            Users_Permission::registerPermissions('intern', $content);
Severity: Critical
Found in boost/update.php by phan

Call to method __construct from undeclared class \PHPWS_DB
Open

      $db = new \PHPWS_DB('intern_affiliation_agreement');
Severity: Critical
Found in class/AffiliationAgreement.php by phan

Doc-block of $phpwsUser in __construct contains phpdoc param type \Intern\PHPWS_User which is incompatible with the param type ?\PHPWS_User declared in the signature
Open

     * @param PHPWS_User $phpwsUser
Severity: Minor
Found in class/ChangeHistory.php by phan

Call to method simple from undeclared class \NQ
Open

            \NQ::simple('intern', \Intern\UI\NotifyUI::ERROR, 'You do not have permission to create new internships.');
Severity: Critical
Found in class/Command/AddInternship.php by phan

Argument 1 (student) is \Intern\DataProvider\Student\Intern\Student but \Intern\Internship::__construct() takes \Intern\Student defined at /code/class/Internship.php:137
Open

        $intern = new Internship($student, $term, $location, $state, $country, $department, $sub, $supervisor);
Severity: Minor
Found in class/Command/AddInternship.php by phan

Call to method simple from undeclared class \NQ
Open

        \NQ::simple('intern', \Intern\UI\NotifyUI::SUCCESS, "Created internship for {$intern->getFullName()}");
Severity: Critical
Found in class/Command/AddInternship.php by phan

Call to method allow from undeclared class \Current_User
Open

        if(!\Current_User::allow('intern', 'affiliation_agreement')){

Call to method allow from undeclared class \Current_User
Open

        if(!\Current_User::allow('intern', 'affiliation_agreement')){
Severity: Critical
Found in class/Command/AffiliateDeptRest.php by phan

Call to method simple from undeclared class \NQ
Open

            \NQ::simple('intern', \Intern\UI\NotifyUI::WARNING, 'You do not have permission to add Affiliation Agreements.');
Severity: Critical
Found in class/Command/AffiliateRest.php by phan

Call to method newDB from undeclared class \phpws2\Database
Open

        $db = Database::newDB();
Severity: Critical
Found in class/Command/AffiliateStateRest.php by phan

Argument 1 (id) is string|string[] but \Intern\InternshipFactory::getInternshipById() takes int defined at /code/class/InternshipFactory.php:37
Open

        $internship = InternshipFactory::getInternshipById($_REQUEST['internshipId']);

Call to method close from undeclared class \NQ
Open

            \NQ::close();
Severity: Critical
Found in class/Command/DeleteInternship.php by phan

Call to method registerPermissions from undeclared class \Users_Permission
Open

            Users_Permission::registerPermissions('intern', $content);
Severity: Critical
Found in boost/update.php by phan

@throws type of getAffiliationById has undeclared type \Intern\InternshipNotFoundException (Did you mean class \Intern\Exception\InternshipNotFoundException)
Open

    public static function getAffiliationById($id)
Severity: Minor
Found in class/AffiliationAgreementFactory.php by phan

Doc-block of $toState in __construct is phpdoc param type \Intern\WorkflowState which is not a permitted replacement of the nullable param type ?\Intern\WorkflowState declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

     * @param WorkflowState $toState
Severity: Minor
Found in class/ChangeHistory.php by phan

Argument 1 (id) is string|string[] but \Intern\DepartmentFactory::getDepartmentById() takes \Intern\unknown defined at /code/class/DepartmentFactory.php:36
Open

        $department = DepartmentFactory::getDepartmentById($departmentId);
Severity: Minor
Found in class/Command/AddInternship.php by phan

Call to method newDB from undeclared class \phpws2\Database
Open

        $db = Database::newDB();
Severity: Critical
Found in class/Command/AffiliateDeptRest.php by phan
Severity
Category
Status
Source
Language