Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- coolife@coolife:~/git-repos/gsoc/api$ ./vendor/bin/psalm --init . 3
- Config file created successfully. Please re-run psalm.
- coolife@coolife:~/git-repos/gsoc/api$ ./vendor/bin/psalm .
- Scanning files...
- Analyzing files...
- ERROR: UndefinedClass - CRM/Api4/Page/AJAX.php:3:34 - Class or interface CRM_Core_Page does not exist
- class CRM_Api4_Page_AJAX extends CRM_Core_Page {
- ERROR: UndefinedClass - CRM/Api4/Page/Api4Explorer.php:3:42 - Class or interface CRM_Core_Page does not exist
- class CRM_Api4_Page_Api4Explorer extends CRM_Core_Page {
- INFO: PropertyNotSetInConstructor - CRM/Api4/Upgrader.php:6:7 - Property CRM_Api4_Upgrader_Base::$ctx is not defined in constructor of CRM_Api4_Upgrader or in any methods called in the constructor
- class CRM_Api4_Upgrader extends CRM_Api4_Upgrader_Base {
- INFO: MissingReturnType - CRM/Api4/Upgrader.php:14:19 - Method CRM_Api4_Upgrader::install does not have a return type, expecting void
- public function install() {
- ERROR: UndefinedFunction - CRM/Api4/Upgrader.php:17:17 - Function civicrm_api3 does not exist
- $v3Item = civicrm_api3('Navigation', 'get', [
- 'name' => 'API Explorer',
- 'return' => ['id', 'parent_id'],
- 'sequential' => 1,
- 'api.Navigation.create' => ['label' => ts("Api Explorer v3")],
- ]);
- INFO: MissingReturnType - CRM/Api4/Upgrader.php:59:19 - Method CRM_Api4_Upgrader::uninstall does not have a return type, expecting void
- public function uninstall() {
- ERROR: UndefinedFunction - CRM/Api4/Upgrader.php:61:5 - Function civicrm_api3 does not exist
- civicrm_api3('Navigation', 'get', [
- 'name' => 'Api Explorer v4',
- 'return' => ['id'],
- 'api.Navigation.delete' => [],
- ]);
- ERROR: UndefinedDocblockClass - CRM/Api4/Upgrader.php:89:5 - Cannot set properties of undefined docblock class CRM_Queue_TaskContext
- $this->ctx->log->info('Applying update 1000');
- ERROR: UndefinedClass - CRM/Api4/Upgrader.php:90:15 - Class or interface CRM_Core_Config does not exist
- $domain = CRM_Core_Config::domainID();
- INFO: InvalidDocblock - CRM/Api4/Upgrader/Base.php:13:3 - varies, is not a valid type
- /**
- * @var varies, subclass of ttis
- */
- static $instance;
- ERROR: UndefinedDocblockClass - CRM/Api4/Upgrader/Base.php:16:11 - Docblock-defined class or interface CRM_Queue_TaskContext does not exist
- /**
- * @var CRM_Queue_TaskContext
- */
- protected $ctx;
- INFO: PropertyNotSetInConstructor - CRM/Api4/Upgrader/Base.php:18:13 - Property CRM_Api4_Upgrader_Base::$ctx is not defined in constructor of CRM_Api4_Upgrader_Base or in any methods called in the constructor
- protected $ctx;
- INFO: InvalidDocblock - CRM/Api4/Upgrader/Base.php:23:3 - string, is not a valid type
- /**
- * @var string, eg 'com.example.myextension'
- */
- protected $extensionName;
- INFO: InvalidDocblock - CRM/Api4/Upgrader/Base.php:28:3 - string, is not a valid type
- /**
- * @var string, full path to the extension's source tree
- */
- protected $extensionDir;
- INFO: InvalidDocblock - CRM/Api4/Upgrader/Base.php:33:3 - array(revisionNumber) is not a valid type
- /**
- * @var array(revisionNumber) sorted numerically
- */
- private $revisions;
- INFO: MissingReturnType - CRM/Api4/Upgrader/Base.php:44:26 - Method CRM_Api4_Upgrader_Base::instance does not have a return type
- static public function instance() {
- INFO: MissingReturnType - CRM/Api4/Upgrader/Base.php:65:26 - Method CRM_Api4_Upgrader_Base::_queueAdapter does not have a return type
- static public function _queueAdapter() {
- INFO: MissingParamType - CRM/Api4/Upgrader/Base.php:74:31 - Parameter $extensionName has no provided type
- public function __construct($extensionName, $extensionDir) {
- INFO: MissingParamType - CRM/Api4/Upgrader/Base.php:74:47 - Parameter $extensionDir has no provided type
- public function __construct($extensionName, $extensionDir) {
- ERROR: UndefinedClass - CRM/Api4/Upgrader/Base.php:100:19 - Class or interface CRM_Utils_Migrate_Import does not exist
- $import = new CRM_Utils_Migrate_Import();
- ERROR: UndefinedClass - CRM/Api4/Upgrader/Base.php:113:5 - Class or interface CRM_Utils_File does not exist
- CRM_Utils_File::sourceSQLFile(
- ERROR: UndefinedClass - CRM/Api4/Upgrader/Base.php:128:20 - Class or interface CRM_Upgrade_Form does not exist
- $upgrade = new CRM_Upgrade_Form();
- INFO: MissingReturnType - CRM/Api4/Upgrader/Base.php:146:19 - Method CRM_Api4_Upgrader_Base::executeSql does not have a return type
- public function executeSql($query, $params = []) {
- INFO: MissingParamType - CRM/Api4/Upgrader/Base.php:146:30 - Parameter $query has no provided type
- public function executeSql($query, $params = []) {
- INFO: MissingParamType - CRM/Api4/Upgrader/Base.php:146:38 - Parameter $params has no provided type
- public function executeSql($query, $params = []) {
- ERROR: UndefinedClass - CRM/Api4/Upgrader/Base.php:148:5 - Class or interface CRM_Core_DAO does not exist
- CRM_Core_DAO::executeQuery($query, $params);
- INFO: MissingReturnType - CRM/Api4/Upgrader/Base.php:161:19 - Method CRM_Api4_Upgrader_Base::addTask does not have a return type
- public function addTask($title) {
- INFO: MissingParamType - CRM/Api4/Upgrader/Base.php:161:27 - Parameter $title has no provided type
- public function addTask($title) {
- ERROR: UndefinedClass - CRM/Api4/Upgrader/Base.php:164:17 - Class or interface CRM_Queue_Task does not exist
- $task = new CRM_Queue_Task(
- INFO: MissingReturnType - CRM/Api4/Upgrader/Base.php:196:19 - Method CRM_Api4_Upgrader_Base::enqueuePendingRevisions does not have a return type, expecting void
- public function enqueuePendingRevisions(CRM_Queue_Queue $queue) {
- ERROR: UndefinedClass - CRM/Api4/Upgrader/Base.php:196:43 - Class or interface CRM_Queue_Queue does not exist
- public function enqueuePendingRevisions(CRM_Queue_Queue $queue) {
- INFO: InvalidDocblock - CRM/Api4/Upgrader/Base.php:231:3 - Bracket must be preceded by “Closure”, “callable” or a valid @method name in docblock for CRM_Api4_Upgrader_Base::getRevisions
- /**
- * Get a list of revisions.
- *
- * @return array(revisionNumbers) sorted numerically
- */
- public function getRevisions() {
- INFO: MissingReturnType - CRM/Api4/Upgrader/Base.php:231:19 - Method CRM_Api4_Upgrader_Base::getRevisions does not have a return type, expecting array<array-key, mixed|string>
- public function getRevisions() {
- INFO: MissingReturnType - CRM/Api4/Upgrader/Base.php:248:19 - Method CRM_Api4_Upgrader_Base::getCurrentRevision does not have a return type
- public function getCurrentRevision() {
- ERROR: UndefinedClass - CRM/Api4/Upgrader/Base.php:249:17 - Class or interface CRM_Core_BAO_Extension does not exist
- $revision = CRM_Core_BAO_Extension::getSchemaVersion($this->extensionName);
- INFO: MissingReturnType - CRM/Api4/Upgrader/Base.php:256:20 - Method CRM_Api4_Upgrader_Base::getCurrentRevisionDeprecated does not have a return type
- private function getCurrentRevisionDeprecated() {
- ERROR: UndefinedClass - CRM/Api4/Upgrader/Base.php:258:21 - Class or interface CRM_Core_BAO_Setting does not exist
- if ($revision = CRM_Core_BAO_Setting::getItem('Extension', $key)) {
- INFO: MissingReturnType - CRM/Api4/Upgrader/Base.php:264:19 - Method CRM_Api4_Upgrader_Base::setCurrentRevision does not have a return type
- public function setCurrentRevision($revision) {
- INFO: MissingParamType - CRM/Api4/Upgrader/Base.php:264:38 - Parameter $revision has no provided type
- public function setCurrentRevision($revision) {
- ERROR: UndefinedClass - CRM/Api4/Upgrader/Base.php:265:5 - Class or interface CRM_Core_BAO_Extension does not exist
- CRM_Core_BAO_Extension::setSchemaVersion($this->extensionName, $revision);
- INFO: MissingReturnType - CRM/Api4/Upgrader/Base.php:271:20 - Method CRM_Api4_Upgrader_Base::deleteDeprecatedRevision does not have a return type, expecting void
- private function deleteDeprecatedRevision() {
- ERROR: UndefinedClass - CRM/Api4/Upgrader/Base.php:273:22 - Class or interface CRM_Core_BAO_Setting does not exist
- $setting = new CRM_Core_BAO_Setting();
- INFO: MissingReturnType - CRM/Api4/Upgrader/Base.php:285:19 - Method CRM_Api4_Upgrader_Base::onInstall does not have a return type, expecting void
- public function onInstall() {
- ERROR: UndefinedClass - CRM/Api4/Upgrader/Base.php:289:9 - Class or interface CRM_Utils_File does not exist
- CRM_Utils_File::sourceSQLFile(CIVICRM_DSN, $file);
- INFO: MissingReturnType - CRM/Api4/Upgrader/Base.php:312:19 - Method CRM_Api4_Upgrader_Base::onPostInstall does not have a return type, expecting void
- public function onPostInstall() {
- INFO: MissingReturnType - CRM/Api4/Upgrader/Base.php:325:19 - Method CRM_Api4_Upgrader_Base::onUninstall does not have a return type, expecting void
- public function onUninstall() {
- ERROR: UndefinedClass - CRM/Api4/Upgrader/Base.php:338:9 - Class or interface CRM_Utils_File does not exist
- CRM_Utils_File::sourceSQLFile(CIVICRM_DSN, $file);
- INFO: MissingReturnType - CRM/Api4/Upgrader/Base.php:346:19 - Method CRM_Api4_Upgrader_Base::onEnable does not have a return type, expecting void
- public function onEnable() {
- INFO: MissingReturnType - CRM/Api4/Upgrader/Base.php:356:19 - Method CRM_Api4_Upgrader_Base::onDisable does not have a return type, expecting void
- public function onDisable() {
- INFO: MissingReturnType - CRM/Api4/Upgrader/Base.php:363:19 - Method CRM_Api4_Upgrader_Base::onUpgrade does not have a return type
- public function onUpgrade($op, CRM_Queue_Queue $queue = NULL) {
- ERROR: UndefinedClass - CRM/Api4/Upgrader/Base.php:363:34 - Class or interface CRM_Queue_Queue does not exist
- public function onUpgrade($op, CRM_Queue_Queue $queue = NULL) {
- INFO: MissingReturnType - Civi/Api4/Action/Address/Create.php:36:19 - Method Civi\Api4\Action\Address\Create::_run does not have a return type, expecting void
- public function _run(Result $result) {
- INFO: MissingReturnType - Civi/Api4/Action/Address/Update.php:36:19 - Method Civi\Api4\Action\Address\Update::_run does not have a return type, expecting void
- public function _run(Result $result) {
- INFO: PropertyNotSetInConstructor - Civi/Api4/Action/Campaign/Get.php:9:7 - Property Civi\Api4\Generic\Traits\IsCurrentTrait::$current is not defined in constructor of Civi\Api4\Action\Campaign\Get or in any methods called in the constructor
- class Get extends \Civi\Api4\Generic\DAOGetAction {
- INFO: MissingReturnType - Civi/Api4/Action/Contact/Create.php:10:22 - Method Civi\Api4\Action\Contact\Create::fillDefaults does not have a return type, expecting void
- protected function fillDefaults(&$params) {
- INFO: PropertyNotSetInConstructor - Civi/Api4/Action/Contact/GetChecksum.php:22:13 - Property Civi\Api4\Action\Contact\GetChecksum::$contactId is not defined in constructor of Civi\Api4\Action\Contact\GetChecksum or in any methods called in the constructor
- protected $contactId;
- ERROR: PossiblyNullPropertyAssignmentValue - Civi/Api4/Action/Contact/GetChecksum.php:31:20 - $this->ttl with non-nullable declared type 'int' cannot be assigned nullable type 'null'
- protected $ttl = NULL;
- INFO: MissingReturnType - Civi/Api4/Action/Contact/GetChecksum.php:36:19 - Method Civi\Api4\Action\Contact\GetChecksum::_run does not have a return type, expecting void
- public function _run(Result $result) {
- INFO: DocblockTypeContradiction - Civi/Api4/Action/Contact/GetChecksum.php:37:33 - string(0) does not contain int
- $ttl = ($this->ttl === 0 || $this->ttl === '0') ? 'inf' : $this->ttl;
- ERROR: UndefinedClass - Civi/Api4/Action/Contact/GetChecksum.php:40:21 - Class or interface CRM_Contact_BAO_Contact_Utils does not exist
- 'checksum' => \CRM_Contact_BAO_Contact_Utils::generateChecksum($this->contactId, NULL, $ttl),
- ERROR: UndefinedClass - Civi/Api4/Action/Contact/GetFields.php:12:37 - Class or interface CRM_Core_Permission does not exist
- if ($this->checkPermissions && !\CRM_Core_Permission::check([$apiKeyPerms])) {
- INFO: PropertyNotSetInConstructor - Civi/Api4/Action/Contact/ValidateChecksum.php:22:13 - Property Civi\Api4\Action\Contact\ValidateChecksum::$contactId is not defined in constructor of Civi\Api4\Action\Contact\ValidateChecksum or in any methods called in the constructor
- protected $contactId;
- INFO: PropertyNotSetInConstructor - Civi/Api4/Action/Contact/ValidateChecksum.php:30:13 - Property Civi\Api4\Action\Contact\ValidateChecksum::$checksum is not defined in constructor of Civi\Api4\Action\Contact\ValidateChecksum or in any methods called in the constructor
- protected $checksum;
- INFO: MissingReturnType - Civi/Api4/Action/Contact/ValidateChecksum.php:35:19 - Method Civi\Api4\Action\Contact\ValidateChecksum::_run does not have a return type, expecting void
- public function _run(Result $result) {
- ERROR: UndefinedClass - Civi/Api4/Action/Contact/ValidateChecksum.php:37:18 - Class or interface CRM_Contact_BAO_Contact_Utils does not exist
- 'valid' => \CRM_Contact_BAO_Contact_Utils::validChecksum($this->contactId, $this->checksum),
- INFO: MissingReturnType - Civi/Api4/Action/Contribution/Create.php:12:19 - Method Civi\Api4\Action\Contribution\Create::_run does not have a return type, expecting void
- public function _run(Result $result) {
- ERROR: UndefinedClass - Civi/Api4/Action/CustomValue/GetFields.php:17:17 - Class or interface Civi does not exist
- $gatherer = \Civi::container()->get('spec_gatherer');
- ERROR: UndefinedClass - Civi/Api4/Action/Entity/Get.php:28:14 - Class or interface CRM_Extension_System does not exist
- foreach (\CRM_Extension_System::singleton()->getMapper()->getActiveModuleFiles() as $ext) {
- INFO: MissingReturnType - Civi/Api4/Action/Entity/Get.php:58:20 - Method Civi\Api4\Action\Entity\Get::addCustomEntities does not have a return type, expecting void
- private function addCustomEntities(&$entities) {
- INFO: MissingParamType - Civi/Api4/Action/Entity/Get.php:58:39 - Parameter $entities has no provided type
- private function addCustomEntities(&$entities) {
- INFO: MissingParamType - Civi/Api4/Action/Entity/Get.php:87:33 - Parameter $input has no provided type
- private function plainTextify($input) {
- INFO: MissingReturnType - Civi/Api4/Action/Entity/Get.php:96:20 - Method Civi\Api4\Action\Entity\Get::addDocs does not have a return type, expecting void
- private function addDocs(&$entity) {
- INFO: MissingParamType - Civi/Api4/Action/Entity/Get.php:96:29 - Parameter $entity has no provided type
- private function addDocs(&$entity) {
- ERROR: ArgumentTypeCoercion - Civi/Api4/Action/Entity/Get.php:97:40 - Argument 1 of ReflectionClass::__construct expects class-string<T>|object, parent type string provided
- $reflection = new \ReflectionClass("\\Civi\\Api4\\" . $entity['name']);
- ERROR: UndefinedClass - Civi/Api4/Action/Entity/GetLinks.php:15:15 - Class or interface Civi does not exist
- $schema = \Civi::container()->get('schema_map');
- INFO: MissingReturnType - Civi/Api4/Action/Entity/GetLinks.php:36:19 - Method Civi\Api4\Action\Entity\GetLinks::fields does not have a return type, expecting array{0:array{name:string}, 1:array{name:string}, 2:array{name:string, data_type:string}}
- public function fields() {
- INFO: PropertyNotSetInConstructor - Civi/Api4/Action/Event/Get.php:9:7 - Property Civi\Api4\Generic\Traits\IsCurrentTrait::$current is not defined in constructor of Civi\Api4\Action\Event\Get or in any methods called in the constructor
- class Get extends \Civi\Api4\Generic\DAOGetAction {
- INFO: MissingPropertyType - Civi/Api4/Action/GetActions.php:15:11 - Property Civi\Api4\Action\GetActions::$_actions does not have a declared type - consider array
- private $_actions = [];
- INFO: MissingPropertyType - Civi/Api4/Action/GetActions.php:17:11 - Property Civi\Api4\Action\GetActions::$_actionsToGet does not have a declared type - consider array<array-key, mixed>|null
- private $_actionsToGet;
- ERROR: ArgumentTypeCoercion - Civi/Api4/Action/GetActions.php:22:46 - Argument 1 of ReflectionClass::__construct expects class-string<T>|object, parent type string provided
- $entityReflection = new \ReflectionClass('\Civi\Api4\\' . $this->_entityName);
- ERROR: UndefinedClass - Civi/Api4/Action/GetActions.php:31:16 - Class or interface CRM_Extension_System does not exist
- foreach (\CRM_Extension_System::singleton()->getMapper()->getActiveModuleFiles() as $ext) {
- INFO: MissingReturnType - Civi/Api4/Action/GetActions.php:43:20 - Method Civi\Api4\Action\GetActions::scanDir does not have a return type, expecting void
- private function scanDir($dir) {
- INFO: MissingParamType - Civi/Api4/Action/GetActions.php:43:28 - Parameter $dir has no provided type
- private function scanDir($dir) {
- ERROR: ArgumentTypeCoercion - Civi/Api4/Action/GetActions.php:49:45 - Argument 1 of ReflectionClass::__construct expects class-string<T>|object, parent type string provided
- $actionClass = new \ReflectionClass('\\Civi\\Api4\\Action\\' . $this->_entityName . '\\' . $actionName);
- INFO: MissingReturnType - Civi/Api4/Action/GetActions.php:60:20 - Method Civi\Api4\Action\GetActions::loadAction does not have a return type, expecting void
- private function loadAction($actionName) {
- INFO: MissingParamType - Civi/Api4/Action/GetActions.php:60:31 - Parameter $actionName has no provided type
- private function loadAction($actionName) {
- INFO: RedundantConditionGivenDocblockType - Civi/Api4/Action/GetActions.php:64:13 - Found a redundant condition when evaluating docblock-defined type $action and trying to reconcile type 'Civi\Api4\Generic\AbstractAction' to object
- if (is_object($action)) {
- ERROR: NullOperand - Civi/Api4/Action/GetActions.php:70:13 - Left operand cannot be null
- $this->_actions[$actionName] += $actionInfo;
- ERROR: UndefinedClass - Civi/Api4/Action/GetActions.php:78:12 - Class or interface Civi\API\Exception\NotImplementedException does not exist
- catch (NotImplementedException $e) {
- INFO: MissingReturnType - Civi/Api4/Action/GetActions.php:82:19 - Method Civi\Api4\Action\GetActions::fields does not have a return type, expecting array{0:array{name:string, data_type:string}, 1:array{name:string, data_type:string}, 2:array{name:string, data_type:string}, 3:array{name:string, data_type:string}}
- public function fields() {
- INFO: MissingReturnType - Civi/Api4/Action/GroupContact/Create.php:32:19 - Method Civi\Api4\Action\GroupContact\Create::_run does not have a return type, expecting void
- public function _run(Result $result) {
- INFO: MissingReturnType - Civi/Api4/Action/GroupContact/Update.php:32:19 - Method Civi\Api4\Action\GroupContact\Update::_run does not have a return type, expecting void
- public function _run(Result $result) {
- INFO: PropertyNotSetInConstructor - Civi/Api4/Action/Relationship/Get.php:9:7 - Property Civi\Api4\Generic\Traits\IsCurrentTrait::$current is not defined in constructor of Civi\Api4\Action\Relationship\Get or in any methods called in the constructor
- class Get extends \Civi\Api4\Generic\DAOGetAction {
- INFO: InvalidDocblock - Civi/Api4/Action/Setting/AbstractSettingAction.php:13:1 - getDomainId is not a valid method in docblock for Civi\Api4\Action\Setting\AbstractSettingAction
- /**
- * Base class for setting actions.
- *
- * @method int getDomainId
- * @method $this setDomainId(int $domainId)
- */
- abstract class AbstractSettingAction extends \Civi\Api4\Generic\AbstractAction {
- INFO: MissingReturnType - Civi/Api4/Action/Setting/AbstractSettingAction.php:29:19 - Method Civi\Api4\Action\Setting\AbstractSettingAction::_run does not have a return type, expecting void
- public function _run(Result $result) {
- ERROR: PossiblyInvalidIterator - Civi/Api4/Action/Setting/AbstractSettingAction.php:32:14 - Cannot iterate over int
- foreach ($this->domainId as $domain) {
- ERROR: UndefinedClass - Civi/Api4/Action/Setting/AbstractSettingAction.php:49:13 - Class or interface Civi\Core\SettingsMetadata does not exist
- $meta = \Civi\Core\SettingsMetadata::getMetadata([], $domain);
- INFO: MissingReturnType - Civi/Api4/Action/Setting/AbstractSettingAction.php:63:22 - Method Civi\Api4\Action\Setting\AbstractSettingAction::findDomains does not have a return type, expecting void
- protected function findDomains() {
- ERROR: UndefinedClass - Civi/Api4/Action/Setting/AbstractSettingAction.php:72:19 - Class or interface API_Exception does not exist
- throw new \API_Exception('Invalid domain id: ' . implode(', ', $invalid));
- ERROR: UndefinedClass - Civi/Api4/Action/Setting/AbstractSettingAction.php:76:26 - Class or interface CRM_Core_Config does not exist
- $this->domainId = [\CRM_Core_Config::domainID()];
- INFO: InvalidDocblock - Civi/Api4/Action/Setting/Get.php:13:1 - getSelect is not a valid method in docblock for Civi\Api4\Action\Setting\Get
- /**
- * Get the value of one or more CiviCRM settings.
- *
- * @method array getSelect
- * @method $this addSelect(string $name)
- * @method $this setSelect(array $select)
- */
- class Get extends AbstractSettingAction {
- INFO: PropertyNotSetInConstructor - Civi/Api4/Action/Setting/Get.php:13:7 - Property Civi\Api4\Action\Setting\AbstractSettingAction::$domainId is not defined in constructor of Civi\Api4\Action\Setting\Get or in any methods called in the constructor
- class Get extends AbstractSettingAction {
- ERROR: UndefinedDocblockClass - Civi/Api4/Action/Setting/Get.php:24:13 - Docblock-defined class or interface Civi\Core\SettingsBag does not exist
- /**
- * @param \Civi\Api4\Generic\Result $result
- * @param \Civi\Core\SettingsBag $settingsBag
- * @param array $meta
- * @param int $domain
- * @throws \Exception
- */
- protected function processSettings(Result $result, $settingsBag, $meta, $domain) {
- INFO: MissingReturnType - Civi/Api4/Action/Setting/Get.php:29:22 - Method Civi\Api4\Action\Setting\Get::processSettings does not have a return type, expecting void
- protected function processSettings(Result $result, $settingsBag, $meta, $domain) {
- INFO: InvalidDocblock - Civi/Api4/Action/Setting/GetFields.php:10:1 - getDomainId is not a valid method in docblock for Civi\Api4\Action\Setting\GetFields
- /**
- * Get information about CiviCRM settings.
- *
- * @method int getDomainId
- * @method $this setDomainId(int $domainId)
- */
- class GetFields extends \Civi\Api4\Generic\BasicGetFieldsAction {
- INFO: PropertyNotSetInConstructor - Civi/Api4/Action/Setting/GetFields.php:17:13 - Property Civi\Api4\Action\Setting\GetFields::$domainId is not defined in constructor of Civi\Api4\Action\Setting\GetFields or in any methods called in the constructor
- protected $domainId;
- ERROR: UndefinedClass - Civi/Api4/Action/Setting/GetFields.php:24:12 - Class or interface Civi\Core\SettingsMetadata does not exist
- return \Civi\Core\SettingsMetadata::getMetadata($filter, $this->domainId, $this->loadOptions);
- INFO: MissingReturnType - Civi/Api4/Action/Setting/GetFields.php:27:19 - Method Civi\Api4\Action\Setting\GetFields::fields does not have a return type, expecting array{0:array{name:string, data_type:string}, 1:array{name:string, data_type:string}, 2:array{name:string, data_type:string}, 3:array{name:string, data_type:string}, 4:array{name:string, data_type:string}, 5:array{name:string, data_type:string}, 6:array{name:string, data_type:string}, 7:array{name:string, data_type:string}, 8:array{name:string, data_type:string}, 9:array{name:string, data_type:string}, 10:array{name:string, data_type:string}, 11:array{name:string, data_type:string}, 12:array{name:string, data_type:string}}
- public function fields() {
- INFO: InvalidDocblock - Civi/Api4/Action/Setting/Revert.php:13:1 - getSelect is not a valid method in docblock for Civi\Api4\Action\Setting\Revert
- /**
- * Revert one or more CiviCRM settings to their default value.
- *
- * @method array getSelect
- * @method $this addSelect(string $name)
- * @method $this setSelect(array $select)
- */
- class Revert extends AbstractSettingAction {
- INFO: PropertyNotSetInConstructor - Civi/Api4/Action/Setting/Revert.php:13:7 - Property Civi\Api4\Action\Setting\AbstractSettingAction::$domainId is not defined in constructor of Civi\Api4\Action\Setting\Revert or in any methods called in the constructor
- class Revert extends AbstractSettingAction {
- ERROR: UndefinedDocblockClass - Civi/Api4/Action/Setting/Revert.php:25:13 - Docblock-defined class or interface Civi\Core\SettingsBag does not exist
- /**
- * @param \Civi\Api4\Generic\Result $result
- * @param \Civi\Core\SettingsBag $settingsBag
- * @param array $meta
- * @param int $domain
- * @throws \Exception
- */
- protected function processSettings(Result $result, $settingsBag, $meta, $domain) {
- INFO: MissingReturnType - Civi/Api4/Action/Setting/Revert.php:30:22 - Method Civi\Api4\Action\Setting\Revert::processSettings does not have a return type, expecting void
- protected function processSettings(Result $result, $settingsBag, $meta, $domain) {
- INFO: InvalidDocblock - Civi/Api4/Action/Setting/Set.php:13:1 - getValues is not a valid method in docblock for Civi\Api4\Action\Setting\Set
- /**
- * Set the value of one or more CiviCRM settings.
- *
- * @method array getValues
- * @method $this setValues(array $value)
- * @method $this addValue(string $name, mixed $value)
- */
- class Set extends AbstractSettingAction {
- INFO: PropertyNotSetInConstructor - Civi/Api4/Action/Setting/Set.php:13:7 - Property Civi\Api4\Action\Setting\AbstractSettingAction::$domainId is not defined in constructor of Civi\Api4\Action\Setting\Set or in any methods called in the constructor
- class Set extends AbstractSettingAction {
- ERROR: UndefinedDocblockClass - Civi/Api4/Action/Setting/Set.php:25:13 - Docblock-defined class or interface Civi\Core\SettingsBag does not exist
- /**
- * @param \Civi\Api4\Generic\Result $result
- * @param \Civi\Core\SettingsBag $settingsBag
- * @param array $meta
- * @param int $domain
- * @throws \Exception
- */
- protected function processSettings(Result $result, $settingsBag, $meta, $domain) {
- INFO: MissingReturnType - Civi/Api4/Action/Setting/Set.php:30:22 - Method Civi\Api4\Action\Setting\Set::processSettings does not have a return type, expecting void
- protected function processSettings(Result $result, $settingsBag, $meta, $domain) {
- ERROR: UndefinedClass - Civi/Api4/Action/System/Check.php:11:14 - Class or interface CRM_Utils_Check does not exist
- foreach (\CRM_Utils_Check::checkAll() as $message) {
- INFO: MissingReturnType - Civi/Api4/Action/System/Check.php:17:26 - Method Civi\Api4\Action\System\Check::fields does not have a return type
- public static function fields() {
- ERROR: UndefinedClass - Civi/Api4/Action/System/Check.php:53:36 - Class or interface CRM_Utils_Check does not exist
- 'options' => array_combine(\CRM_Utils_Check::getSeverityList(), \CRM_Utils_Check::getSeverityList()),
- ERROR: UndefinedClass - Civi/Api4/Action/System/Check.php:60:22 - Class or interface CRM_Utils_Check does not exist
- 'options' => \CRM_Utils_Check::getSeverityList(),
- INFO: InvalidDocblock - Civi/Api4/Action/System/Flush.php:12:1 - getTriggers is not a valid method in docblock for Civi\Api4\Action\System\Flush
- /**
- * Clear CiviCRM caches, and optionally rebuild triggers and reset sessions.
- *
- * @method bool getTriggers
- * @method $this setTriggers(bool $triggers)
- * @method bool getSession
- * @method $this setSession(bool $session)
- */
- class Flush extends \Civi\Api4\Generic\AbstractAction {
- INFO: MissingReturnType - Civi/Api4/Action/System/Flush.php:28:19 - Method Civi\Api4\Action\System\Flush::_run does not have a return type, expecting void
- public function _run(\Civi\Api4\Generic\Result $result) {
- ERROR: UndefinedClass - Civi/Api4/Action/System/Flush.php:29:5 - Class or interface CRM_Core_Invoke does not exist
- \CRM_Core_Invoke::rebuildMenuAndCaches($this->triggers, $this->session);
- INFO: MissingReturnType - Civi/Api4/Contact.php:28:26 - Method Civi\Api4\Contact::getChecksum does not have a return type, expecting Civi\Api4\Action\Contact\GetChecksum
- public static function getChecksum() {
- INFO: MissingReturnType - Civi/Api4/Contact.php:33:26 - Method Civi\Api4\Contact::validateChecksum does not have a return type, expecting Civi\Api4\Action\Contact\ValidateChecksum
- public static function validateChecksum() {
- ERROR: UndefinedClass - Civi/Api4/CustomValue.php:73:20 - Class or interface CRM_Core_Permission does not exist
- $permissions = \CRM_Core_Permission::getEntityActionPermissions();
- ERROR: UndefinedClass - Civi/Api4/Event/GetSpecEvent.php:8:28 - Class or interface Symfony\Component\EventDispatcher\Event does not exist
- class GetSpecEvent extends BaseEvent {
- ERROR: UndefinedClass - Civi/Api4/Event/PostSelectQueryEvent.php:8:36 - Class or interface Symfony\Component\EventDispatcher\Event does not exist
- class PostSelectQueryEvent extends Event {
- ERROR: UndefinedClass - Civi/Api4/Event/SchemaMapBuildEvent.php:8:35 - Class or interface Symfony\Component\EventDispatcher\Event does not exist
- class SchemaMapBuildEvent extends BaseEvent {
- ERROR: MissingDependency - Civi/Api4/Event/Subscriber/ActivityPreCreationSubscriber.php:8:45 - Civi\Api4\Event\Subscriber\Generic\PreCreationSubscriber depends on class or interface symfony\component\eventdispatcher\eventsubscriberinterface that does not exist
- class ActivityPreCreationSubscriber extends Generic\PreCreationSubscriber {
- ERROR: UndefinedClass - Civi/Api4/Event/Subscriber/ActivitySchemaMapSubscriber.php:13:46 - Class or interface Symfony\Component\EventDispatcher\EventSubscriberInterface does not exist
- class ActivitySchemaMapSubscriber implements EventSubscriberInterface {
- ERROR: UndefinedClass - Civi/Api4/Event/Subscriber/ContactSchemaMapSubscriber.php:11:45 - Class or interface Symfony\Component\EventDispatcher\EventSubscriberInterface does not exist
- class ContactSchemaMapSubscriber implements EventSubscriberInterface {
- ERROR: MissingDependency - Civi/Api4/Event/Subscriber/CustomFieldPreCreationSubscriber.php:7:48 - Civi\Api4\Event\Subscriber\Generic\PreCreationSubscriber depends on class or interface symfony\component\eventdispatcher\eventsubscriberinterface that does not exist
- class CustomFieldPreCreationSubscriber extends Generic\PreCreationSubscriber {
- ERROR: MissingDependency - Civi/Api4/Event/Subscriber/CustomGroupPreCreationSubscriber.php:7:48 - Civi\Api4\Event\Subscriber\Generic\PreCreationSubscriber depends on class or interface symfony\component\eventdispatcher\eventsubscriberinterface that does not exist
- class CustomGroupPreCreationSubscriber extends Generic\PreCreationSubscriber {
- ERROR: UndefinedClass - Civi/Api4/Event/Subscriber/Generic/AbstractPrepareSubscriber.php:9:53 - Class or interface Symfony\Component\EventDispatcher\EventSubscriberInterface does not exist
- abstract class AbstractPrepareSubscriber implements EventSubscriberInterface {
- ERROR: MissingDependency - Civi/Api4/Event/Subscriber/Generic/PreCreationSubscriber.php:8:46 - Civi\Api4\Event\Subscriber\Generic\AbstractPrepareSubscriber depends on class or interface symfony\component\eventdispatcher\eventsubscriberinterface that does not exist
- abstract class PreCreationSubscriber extends AbstractPrepareSubscriber {
- ERROR: MissingDependency - Civi/Api4/Event/Subscriber/IsCurrentSubscriber.php:14:35 - Civi\Api4\Event\Subscriber\Generic\AbstractPrepareSubscriber depends on class or interface symfony\component\eventdispatcher\eventsubscriberinterface that does not exist
- class IsCurrentSubscriber extends Generic\AbstractPrepareSubscriber {
- ERROR: MissingDependency - Civi/Api4/Event/Subscriber/OptionValuePreCreationSubscriber.php:8:48 - Civi\Api4\Event\Subscriber\Generic\PreCreationSubscriber depends on class or interface symfony\component\eventdispatcher\eventsubscriberinterface that does not exist
- class OptionValuePreCreationSubscriber extends Generic\PreCreationSubscriber {
- ERROR: UndefinedClass - Civi/Api4/Event/Subscriber/PermissionCheckSubscriber.php:38:44 - Class or interface Symfony\Component\EventDispatcher\EventSubscriberInterface does not exist
- class PermissionCheckSubscriber implements EventSubscriberInterface {
- ERROR: UndefinedClass - Civi/Api4/Event/Subscriber/PostSelectQuerySubscriber.php:15:44 - Class or interface Symfony\Component\EventDispatcher\EventSubscriberInterface does not exist
- class PostSelectQuerySubscriber implements EventSubscriberInterface {
- ERROR: MissingDependency - Civi/Api4/Event/Subscriber/ValidateFieldsSubscriber.php:35:40 - Civi\Api4\Event\Subscriber\Generic\AbstractPrepareSubscriber depends on class or interface symfony\component\eventdispatcher\eventsubscriberinterface that does not exist
- class ValidateFieldsSubscriber extends Generic\AbstractPrepareSubscriber {
- INFO: MissingPropertyType - Civi/Api4/Generic/AbstractAction.php:56:13 - Property Civi\Api4\Generic\AbstractAction::$_entityName does not have a declared type - consider string|false
- protected $_entityName;
- INFO: MissingPropertyType - Civi/Api4/Generic/AbstractAction.php:59:13 - Property Civi\Api4\Generic\AbstractAction::$_actionName does not have a declared type - consider string
- protected $_actionName;
- INFO: MissingPropertyType - Civi/Api4/Generic/AbstractAction.php:62:11 - Property Civi\Api4\Generic\AbstractAction::$_reflection does not have a declared type - consider ReflectionClass<mixed>|null
- private $_reflection;
- INFO: MissingPropertyType - Civi/Api4/Generic/AbstractAction.php:65:11 - Property Civi\Api4\Generic\AbstractAction::$_paramInfo does not have a declared type - consider non-empty-array<string, array<array-key, mixed>>|null
- private $_paramInfo;
- INFO: MissingPropertyType - Civi/Api4/Generic/AbstractAction.php:68:11 - Property Civi\Api4\Generic\AbstractAction::$_entityFields does not have a declared type
- private $_entityFields;
- INFO: MissingPropertyType - Civi/Api4/Generic/AbstractAction.php:71:11 - Property Civi\Api4\Generic\AbstractAction::$_arrayStorage does not have a declared type - consider array
- private $_arrayStorage = [];
- ERROR: PossiblyFalseOperand - Civi/Api4/Generic/AbstractAction.php:83:41 - Left operand cannot be falsable, got int|false
- $entityName = substr($entityName, strrpos($entityName, '\\') + 1);
- INFO: MissingParamType - Civi/Api4/Generic/AbstractAction.php:95:25 - Parameter $name has no provided type
- public function __set($name, $value) {
- INFO: MissingParamType - Civi/Api4/Generic/AbstractAction.php:95:32 - Parameter $value has no provided type
- public function __set($name, $value) {
- ERROR: UndefinedClass - Civi/Api4/Generic/AbstractAction.php:96:15 - Class or interface API_Exception does not exist
- throw new \API_Exception('Unknown api parameter');
- ERROR: UndefinedClass - Civi/Api4/Generic/AbstractAction.php:106:17 - Class or interface API_Exception does not exist
- throw new \API_Exception('Cannot modify api version');
- INFO: MissingParamType - Civi/Api4/Generic/AbstractAction.php:133:26 - Parameter $name has no provided type
- public function __call($name, $arguments) {
- INFO: MissingParamType - Civi/Api4/Generic/AbstractAction.php:133:33 - Parameter $arguments has no provided type
- public function __call($name, $arguments) {
- ERROR: UndefinedClass - Civi/Api4/Generic/AbstractAction.php:136:17 - Class or interface API_Exception does not exist
- throw new \API_Exception('Unknown api parameter: ' . $name);
- ERROR: UndefinedClass - Civi/Api4/Generic/AbstractAction.php:154:23 - Class or interface API_Exception does not exist
- throw new \API_Exception('Cannot add to non-array param');
- ERROR: UndefinedClass - Civi/Api4/Generic/AbstractAction.php:165:15 - Class or interface API_Exception does not exist
- throw new \API_Exception('Unknown api parameter: ' . $name);
- ERROR: UndefinedDocblockClass - Civi/Api4/Generic/AbstractAction.php:179:5 - Docblock-defined class or interface Civi\API\Kernel does not exist
- /** @var Kernel $kernel */
- $kernel = \Civi::service('civi_api_kernel');
- ERROR: UndefinedClass - Civi/Api4/Generic/AbstractAction.php:179:15 - Class or interface Civi does not exist
- $kernel = \Civi::service('civi_api_kernel');
- ERROR: UndefinedClass - Civi/Api4/Generic/AbstractAction.php:289:17 - Class or interface API_Exception does not exist
- throw new \API_Exception('Cannot modify api4 state via array access');
- ERROR: UndefinedClass - Civi/Api4/Generic/AbstractAction.php:304:17 - Class or interface API_Exception does not exist
- throw new \API_Exception('Cannot modify api4 state via array access');
- ERROR: UndefinedClass - Civi/Api4/Generic/AbstractAction.php:318:12 - Class or interface CRM_Core_Permission does not exist
- return \CRM_Core_Permission::check($permissions);
- INFO: MissingReturnType - Civi/Api4/Generic/AbstractAction.php:321:19 - Method Civi\Api4\Generic\AbstractAction::getPermissions does not have a return type
- public function getPermissions() {
- ERROR: UndefinedFunction - Civi/Api4/Generic/AbstractAction.php:354:38 - Function Civi\Api4\Generic\civicrm_api4 does not exist
- $this->_entityFields = (array) civicrm_api4($this->getEntityName(), 'getFields', $params, 'name');
- ERROR: UndefinedClass - Civi/Api4/Generic/AbstractAction.php:384:17 - Class or interface API_Exception does not exist
- throw new \API_Exception('Illegal character in expression');
- ERROR: UndefinedClass - Civi/Api4/Generic/AbstractAction.php:387:24 - Class or interface CRM_Core_Smarty does not exist
- return (bool) trim(\CRM_Core_Smarty::singleton()->fetchWith('string:' . $tpl, $vars));
- ERROR: UndefinedFunction - Civi/Api4/Generic/AbstractBatchAction.php:54:20 - Function Civi\Api4\Generic\civicrm_api4 does not exist
- return (array) civicrm_api4($this->getEntityName(), 'get', $params);
- INFO: MissingReturnType - Civi/Api4/Generic/AbstractCreateAction.php:35:22 - Method Civi\Api4\Generic\AbstractCreateAction::validateValues does not have a return type, expecting void
- protected function validateValues() {
- ERROR: UndefinedClass - Civi/Api4/Generic/AbstractCreateAction.php:52:17 - Class or interface API_Exception does not exist
- throw new \API_Exception("Mandatory values missing from Api4 {$this->getEntityName()}::{$this->getActionName()}: '" . implode("', '", $unmatched) . "'", "mandatory_missing", ["fields" => $unmatched]);
- INFO: MissingReturnType - Civi/Api4/Generic/AbstractEntity.php:40:26 - Method Civi\Api4\Generic\AbstractEntity::getFields does not have a return type, expecting void
- public static function getFields() {
- ERROR: UndefinedClass - Civi/Api4/Generic/AbstractEntity.php:41:15 - Class or interface Civi\API\Exception\NotImplementedException does not exist
- throw new NotImplementedException(self::getEntityName() . ' should implement getFields action.');
- ERROR: UndefinedClass - Civi/Api4/Generic/AbstractEntity.php:50:20 - Class or interface CRM_Core_Permission does not exist
- $permissions = \CRM_Core_Permission::getEntityActionPermissions();
- ERROR: PossiblyFalseOperand - Civi/Api4/Generic/AbstractEntity.php:64:34 - Left operand cannot be falsable, got int|false
- return substr(static::class, strrpos(static::class, '\\') + 1);
- ERROR: MoreSpecificReturnType - Civi/Api4/Generic/AbstractEntity.php:72:14 - The declared return type 'Civi\Api4\Generic\AbstractAction' for Civi\Api4\Generic\AbstractEntity::__callStatic is more specific than the inferred return type 'object'
- /**
- * Magic method to return the action object for an api.
- *
- * @param string $action
- * @param null $args
- * @return AbstractAction
- * @throws NotImplementedException
- */
- public static function __callStatic($action, $args) {
- $entity = self::getEntityName();
- // Find class for this action
- ERROR: UndefinedClass - Civi/Api4/Generic/AbstractEntity.php:83:17 - Class or interface Civi\API\Exception\NotImplementedException does not exist
- throw new NotImplementedException("Api $entity $action version 4 does not exist.");
- ERROR: LessSpecificReturnStatement - Civi/Api4/Generic/AbstractEntity.php:85:12 - The type 'object' is more general than the declared return type 'Civi\Api4\Generic\AbstractAction' for Civi\Api4\Generic\AbstractEntity::__callStatic
- return $actionObject;
- ERROR: UndefinedClass - Civi/Api4/Generic/AbstractQueryAction.php:70:24 - Class or interface CRM_Core_DAO does not exist
- if (!in_array($op, \CRM_Core_DAO::acceptedSQLOperators())) {
- ERROR: UndefinedClass - Civi/Api4/Generic/AbstractQueryAction.php:71:17 - Class or interface API_Exception does not exist
- throw new \API_Exception('Unsupported operator');
- INFO: RedundantConditionGivenDocblockType - Civi/Api4/Generic/AbstractQueryAction.php:117:9 - Found a redundant condition when evaluating docblock-defined type $whereClause and trying to reconcile type 'array<array-key, mixed>' to array
- if (!is_array($whereClause) || !$whereClause) {
- INFO: DocblockTypeContradiction - Civi/Api4/Generic/AbstractQueryAction.php:117:10 - Found a contradiction with a docblock-defined type when evaluating $whereClause and trying to reconcile type 'array<array-key, mixed>' to !array
- if (!is_array($whereClause) || !$whereClause) {
- ERROR: UndefinedClass - Civi/Api4/Generic/AbstractQueryAction.php:128:65 - Class or interface CRM_Core_DAO does not exist
- elseif (isset($whereClause[1]) && in_array($whereClause[1], \CRM_Core_DAO::acceptedSQLOperators())) {
- ERROR: PossiblyNullPropertyAssignmentValue - Civi/Api4/Generic/BasicBatchAction.php:37:19 - $this->doer with non-nullable declared type 'callable' cannot be assigned nullable type 'callable|null'
- $this->doer = $doer;
- INFO: MissingReturnType - Civi/Api4/Generic/BasicBatchAction.php:46:19 - Method Civi\Api4\Generic\BasicBatchAction::_run does not have a return type, expecting void
- public function _run(Result $result) {
- INFO: RedundantConditionGivenDocblockType - Civi/Api4/Generic/BasicBatchAction.php:66:9 - Found a redundant condition when evaluating docblock-defined type $this->doer and trying to reconcile type 'callable' to callable
- if (is_callable($this->doer)) {
- ERROR: UndefinedClass - Civi/Api4/Generic/BasicBatchAction.php:69:15 - Class or interface Civi\API\Exception\NotImplementedException does not exist
- throw new NotImplementedException('Doer function not found for api4 ' . $this->getEntityName() . '::' . $this->getActionName());
- ERROR: PossiblyNullPropertyAssignmentValue - Civi/Api4/Generic/BasicCreateAction.php:31:21 - $this->setter with non-nullable declared type 'callable' cannot be assigned nullable type 'callable|null'
- $this->setter = $setter;
- INFO: MissingReturnType - Civi/Api4/Generic/BasicCreateAction.php:40:19 - Method Civi\Api4\Generic\BasicCreateAction::_run does not have a return type, expecting void
- public function _run(Result $result) {
- INFO: RedundantConditionGivenDocblockType - Civi/Api4/Generic/BasicCreateAction.php:58:9 - Found a redundant condition when evaluating docblock-defined type $this->setter and trying to reconcile type 'callable' to callable
- if (is_callable($this->setter)) {
- ERROR: UndefinedClass - Civi/Api4/Generic/BasicCreateAction.php:61:15 - Class or interface Civi\API\Exception\NotImplementedException does not exist
- throw new NotImplementedException('Setter function not found for api4 ' . $this->getEntityName() . '::' . $this->getActionName());
- ERROR: PossiblyNullPropertyAssignmentValue - Civi/Api4/Generic/BasicGetAction.php:31:21 - $this->getter with non-nullable declared type 'callable' cannot be assigned nullable type 'callable|null'
- $this->getter = $getter;
- ERROR: PossiblyNullPropertyAssignmentValue - Civi/Api4/Generic/BasicGetAction.php:31:21 - $this->getter with non-nullable declared type 'callable' cannot be assigned nullable type 'callable|null'
- $this->getter = $getter;
- ERROR: PossiblyNullPropertyAssignmentValue - Civi/Api4/Generic/BasicGetAction.php:31:21 - $this->getter with non-nullable declared type 'callable' cannot be assigned nullable type 'callable|null'
- $this->getter = $getter;
- INFO: MissingReturnType - Civi/Api4/Generic/BasicGetAction.php:39:19 - Method Civi\Api4\Generic\BasicGetAction::_run does not have a return type, expecting void
- public function _run(Result $result) {
- INFO: RedundantConditionGivenDocblockType - Civi/Api4/Generic/BasicGetAction.php:77:9 - Found a redundant condition when evaluating docblock-defined type $this->getter and trying to reconcile type 'callable' to callable
- if (is_callable($this->getter)) {
- ERROR: UndefinedClass - Civi/Api4/Generic/BasicGetAction.php:80:15 - Class or interface Civi\API\Exception\NotImplementedException does not exist
- throw new NotImplementedException('Getter function not found for api4 ' . $this->getEntityName() . '::' . $this->getActionName());
- INFO: MissingReturnType - Civi/Api4/Generic/BasicGetFieldsAction.php:43:19 - Method Civi\Api4\Generic\BasicGetFieldsAction::_run does not have a return type, expecting void
- public function _run(Result $result) {
- ERROR: UndefinedClass - Civi/Api4/Generic/BasicGetFieldsAction.php:47:12 - Class or interface Civi\API\Exception\NotImplementedException does not exist
- catch (NotImplementedException $e) {
- INFO: MissingReturnType - Civi/Api4/Generic/BasicGetFieldsAction.php:69:22 - Method Civi\Api4\Generic\BasicGetFieldsAction::padResults does not have a return type, expecting void
- protected function padResults(&$values) {
- ERROR: UndefinedClass - Civi/Api4/Generic/BasicGetFieldsAction.php:77:24 - Class or interface CRM_Utils_Array does not exist
- 'data_type' => \CRM_Utils_Array::value('type', $field, 'String'),
- INFO: MissingReturnType - Civi/Api4/Generic/BasicGetFieldsAction.php:94:19 - Method Civi\Api4\Generic\BasicGetFieldsAction::fields does not have a return type, expecting array{0:array{name:string, data_type:string}, 1:array{name:string, data_type:string}, 2:array{name:string, data_type:string}, 3:array{name:string, data_type:string}, 4:array{name:string, data_type:string}, 5:array{name:string, data_type:string}, 6:array{name:string, data_type:string}, 7:array{name:string, data_type:string}, 8:array{name:string, data_type:string}, 9:array{name:string, data_type:string}}
- public function fields() {
- ERROR: MoreSpecificReturnType - Civi/Api4/Generic/BasicReplaceAction.php:37:14 - The declared return type 'Civi\Api4\Result\ReplaceResult' for Civi\Api4\Generic\BasicReplaceAction::execute is more specific than the inferred return type 'Civi\Api4\Generic\Result'
- /**
- * @return \Civi\Api4\Result\ReplaceResult
- */
- public function execute() {
- return parent::execute();
- }
- ERROR: LessSpecificReturnStatement - Civi/Api4/Generic/BasicReplaceAction.php:40:12 - The type 'Civi\Api4\Generic\Result' is more general than the declared return type 'Civi\Api4\Result\ReplaceResult' for Civi\Api4\Generic\BasicReplaceAction::execute
- return parent::execute();
- INFO: MissingReturnType - Civi/Api4/Generic/BasicReplaceAction.php:46:19 - Method Civi\Api4\Generic\BasicReplaceAction::_run does not have a return type, expecting void
- public function _run(Result $result) {
- ERROR: UndefinedFunction - Civi/Api4/Generic/BasicReplaceAction.php:65:21 - Function Civi\Api4\Generic\civicrm_api4 does not exist
- $result[] = civicrm_api4($this->getEntityName(), 'update', [
- 'reload' => $this->reload,
- 'where' => [[$idField, '=', $id]],
- 'values' => $record,
- ])->first();
- ERROR: UndefinedFunction - Civi/Api4/Generic/BasicReplaceAction.php:79:34 - Function Civi\Api4\Generic\civicrm_api4 does not exist
- $result->deleted = (array) civicrm_api4($this->getEntityName(), 'delete', [
- 'where' => [[$idField, 'IN', array_keys($toDelete)]],
- ]);
- ERROR: PossiblyNullPropertyAssignmentValue - Civi/Api4/Generic/BasicUpdateAction.php:33:21 - $this->setter with non-nullable declared type 'callable' cannot be assigned nullable type 'callable|null'
- $this->setter = $setter;
- INFO: MissingReturnType - Civi/Api4/Generic/BasicUpdateAction.php:44:19 - Method Civi\Api4\Generic\BasicUpdateAction::_run does not have a return type, expecting void
- public function _run(Result $result) {
- ERROR: UndefinedClass - Civi/Api4/Generic/BasicUpdateAction.php:50:17 - Class or interface API_Exception does not exist
- throw new \API_Exception('Cannot ' . $this->getActionName() . ' ' . $this->getEntityName() . ', no records found with ' . $this->whereClauseToString());
- INFO: RedundantConditionGivenDocblockType - Civi/Api4/Generic/BasicUpdateAction.php:67:9 - Found a redundant condition when evaluating docblock-defined type $this->setter and trying to reconcile type 'callable' to callable
- if (is_callable($this->setter)) {
- ERROR: UndefinedClass - Civi/Api4/Generic/BasicUpdateAction.php:70:15 - Class or interface Civi\API\Exception\NotImplementedException does not exist
- throw new NotImplementedException('Setter function not found for api4 ' . $this->getEntityName() . '::' . $this->getActionName());
- INFO: MissingReturnType - Civi/Api4/Generic/DAOCreateAction.php:16:19 - Method Civi\Api4\Generic\DAOCreateAction::_run does not have a return type, expecting void
- public function _run(Result $result) {
- INFO: MissingReturnType - Civi/Api4/Generic/DAOCreateAction.php:29:22 - Method Civi\Api4\Generic\DAOCreateAction::validateValues does not have a return type, expecting void
- protected function validateValues() {
- ERROR: UndefinedClass - Civi/Api4/Generic/DAOCreateAction.php:31:17 - Class or interface API_Exception does not exist
- throw new \API_Exception('Cannot pass id to Create action. Use Update action instead.');
- INFO: MissingReturnType - Civi/Api4/Generic/DAOCreateAction.php:43:22 - Method Civi\Api4\Generic\DAOCreateAction::fillDefaults does not have a return type, expecting void
- protected function fillDefaults(&$params) {
- ERROR: UndefinedClass - Civi/Api4/Generic/DAOCreateAction.php:46:32 - Class or interface CRM_Core_DAO does not exist
- $coreFields = array_column($bao::fields(), NULL, 'name');
- INFO: InvalidStringClass - Civi/Api4/Generic/DAOCreateAction.php:46:32 - String cannot be used as a class
- $coreFields = array_column($bao::fields(), NULL, 'name');
- ERROR: UndefinedClass - Civi/Api4/Generic/DAOCreateAction.php:50:99 - Class or interface CRM_Utils_Array does not exist
- if (!isset($params[$name]) && !empty($field['default_value']) && $field['default_value'] != \CRM_Utils_Array::pathGet($coreFields, [$name, 'default'])) {
- INFO: MissingReturnType - Civi/Api4/Generic/DAODeleteAction.php:14:19 - Method Civi\Api4\Generic\DAODeleteAction::_run does not have a return type, expecting void
- public function _run(Result $result) {
- ERROR: UndefinedClass - Civi/Api4/Generic/DAODeleteAction.php:17:17 - Class or interface API_Exception does not exist
- throw new \API_Exception('Cannot delete ' . $this->getEntityName() . ' with no "where" parameter specified');
- ERROR: UndefinedClass - Civi/Api4/Generic/DAODeleteAction.php:23:17 - Class or interface API_Exception does not exist
- throw new \API_Exception('Cannot delete ' . $this->getEntityName() . ', no records found with ' . $this->whereClauseToString());
- INFO: MissingParamType - Civi/Api4/Generic/DAODeleteAction.php:36:36 - Parameter $items has no provided type
- protected function deleteObjects($items) {
- ERROR: UndefinedClass - Civi/Api4/Generic/DAODeleteAction.php:42:37 - Class or interface CRM_Core_DAO does not exist
- $bao = call_user_func_array([$baoName, 'del'], $args);
- ERROR: InvalidThrow - Civi/Api4/Generic/DAODeleteAction.php:47:11 - Cannot throw API_Exception as it does not extend Exception or implement Throwable
- throw new \API_Exception("Could not delete {$this->getEntityName()} id {$item['id']}");
- ERROR: UndefinedClass - Civi/Api4/Generic/DAODeleteAction.php:47:21 - Class or interface API_Exception does not exist
- throw new \API_Exception("Could not delete {$this->getEntityName()} id {$item['id']}");
- ERROR: UndefinedClass - Civi/Api4/Generic/DAODeleteAction.php:53:16 - Type CRM_Core_DAO cannot be called as a class
- $bao = new $baoName();
- INFO: InvalidStringClass - Civi/Api4/Generic/DAODeleteAction.php:53:16 - String cannot be used as a class
- $bao = new $baoName();
- ERROR: InvalidThrow - Civi/Api4/Generic/DAODeleteAction.php:61:11 - Cannot throw API_Exception as it does not extend Exception or implement Throwable
- throw new \API_Exception("Could not delete {$this->getEntityName()} id {$item['id']}");
- ERROR: UndefinedClass - Civi/Api4/Generic/DAODeleteAction.php:61:21 - Class or interface API_Exception does not exist
- throw new \API_Exception("Could not delete {$this->getEntityName()} id {$item['id']}");
- INFO: MissingReturnType - Civi/Api4/Generic/DAOGetAction.php:15:19 - Method Civi\Api4\Generic\DAOGetAction::_run does not have a return type, expecting void
- public function _run(Result $result) {
- ERROR: UndefinedClass - Civi/Api4/Generic/DAOGetFieldsAction.php:31:17 - Class or interface Civi does not exist
- $gatherer = \Civi::container()->get('spec_gatherer');
- INFO: MissingReturnType - Civi/Api4/Generic/DAOGetFieldsAction.php:40:19 - Method Civi\Api4\Generic\DAOGetFieldsAction::fields does not have a return type
- public function fields() {
- INFO: MissingReturnType - Civi/Api4/Generic/DAOUpdateAction.php:25:19 - Method Civi\Api4\Generic\DAOUpdateAction::_run does not have a return type, expecting void
- public function _run(Result $result) {
- ERROR: UndefinedClass - Civi/Api4/Generic/DAOUpdateAction.php:39:17 - Class or interface API_Exception does not exist
- throw new \API_Exception('Parameter "where" is required unless an id is supplied in values.');
- ERROR: PossiblyInvalidIterator - Civi/Api4/Generic/DAOUpdateAction.php:51:14 - Cannot iterate over int
- foreach ($items as &$item) {
- INFO: MissingConstructor - Civi/Api4/Generic/Result.php:37:10 - Civi\Api4\Result\ReplaceResult has an uninitialized variable $this->entity, but no constructor
- public $entity;
- INFO: MissingPropertyType - Civi/Api4/Generic/Result.php:48:11 - Property Civi\Api4\Generic\Result::$indexedBy does not have a declared type - consider null|string
- private $indexedBy;
- ERROR: UndefinedClass - Civi/Api4/Generic/Result.php:101:19 - Class or interface API_Exception does not exist
- throw new \API_Exception("Key $key not found in api results");
- ERROR: PossiblyNullArgument - Civi/Api4/Generic/Result.php:115:63 - Argument 1 of array_keys cannot be null, possibly null value provided
- if ($count == 1 && is_array($this->first()) && array_keys($this->first()) == ['row_count']) {
- ERROR: PossiblyNullArrayAccess - Civi/Api4/Generic/Result.php:116:14 - Cannot access array value on possibly null variable of type array<array-key, mixed>|null
- return $this->first()['row_count'];
- INFO: MissingParamType - Civi/Api4/Generic/Result.php:127:26 - Parameter $name has no provided type
- public function column($name) {
- INFO: DocblockTypeContradiction - Civi/Api4/Generic/Traits/ArrayQueryActionTrait.php:88:10 - Found a contradiction with a docblock-defined type when evaluating $condition and trying to reconcile type 'array<array-key, mixed>' to !array
- if (!is_array($condition)) {
- INFO: DocblockTypeContradiction - Civi/Api4/Generic/Traits/ArrayQueryActionTrait.php:88:10 - Found a contradiction with a docblock-defined type when evaluating $condition and trying to reconcile type 'array<array-key, mixed>' to !array
- if (!is_array($condition)) {
- ERROR: UndefinedClass - Civi/Api4/Generic/Traits/ArrayQueryActionTrait.php:89:17 - Class or interface Civi\API\Exception\NotImplementedException does not exist
- throw new NotImplementedException('Unexpected where syntax; expecting array.');
- ERROR: UndefinedClass - Civi/Api4/Generic/Traits/ArrayQueryActionTrait.php:142:19 - Class or interface Civi\API\Exception\NotImplementedException does not exist
- throw new NotImplementedException("Unsupported operator: '$operator' cannot be used with array data");
- INFO: MissingParamType - Civi/Api4/Generic/Traits/ArrayQueryActionTrait.php:150:32 - Parameter $values has no provided type
- protected function sortArray($values) {
- INFO: MissingReturnType - Civi/Api4/Generic/Traits/ArrayQueryActionTrait.php:157:20 - Method Civi\Api4\Generic\Traits\ArrayQueryActionTrait::sortCompare does not have a return type, expecting int
- private function sortCompare($a, $b) {
- INFO: MissingParamType - Civi/Api4/Generic/Traits/ArrayQueryActionTrait.php:157:32 - Parameter $a has no provided type
- private function sortCompare($a, $b) {
- INFO: MissingParamType - Civi/Api4/Generic/Traits/ArrayQueryActionTrait.php:157:36 - Parameter $b has no provided type
- private function sortCompare($a, $b) {
- INFO: MissingParamType - Civi/Api4/Generic/Traits/ArrayQueryActionTrait.php:177:34 - Parameter $values has no provided type
- protected function selectArray($values) {
- INFO: MissingParamType - Civi/Api4/Generic/Traits/ArrayQueryActionTrait.php:193:33 - Parameter $values has no provided type
- protected function limitArray($values) {
- INFO: MissingParamType - Civi/Api4/Generic/Traits/CustomValueActionTrait.php:15:31 - Parameter $customGroup has no provided type
- public function __construct($customGroup, $actionName) {
- INFO: MissingParamType - Civi/Api4/Generic/Traits/CustomValueActionTrait.php:15:45 - Parameter $actionName has no provided type
- public function __construct($customGroup, $actionName) {
- ERROR: TooManyArguments - Civi/Api4/Generic/Traits/CustomValueActionTrait.php:17:5 - Too many arguments for method Civi\Api4\Generic\DAOCreateAction::__construct - expecting 2 but saw 3
- parent::__construct('CustomValue', $actionName, ['id', 'entity_id']);
- ERROR: InvalidArgument - Civi/Api4/Generic/Traits/CustomValueActionTrait.php:17:53 - Argument 3 of Civi\Api4\Generic\DAOGetFieldsAction::__construct expects callable|null, array{0:string(id), 1:string(entity_id)} provided
- parent::__construct('CustomValue', $actionName, ['id', 'entity_id']);
- INFO: MissingReturnType - Civi/Api4/Generic/Traits/CustomValueActionTrait.php:37:22 - Method Civi\Api4\Generic\Traits\CustomValueActionTrait::writeObjects does not have a return type, expecting array<int, mixed>
- protected function writeObjects($items) {
- INFO: MissingParamType - Civi/Api4/Generic/Traits/CustomValueActionTrait.php:37:35 - Parameter $items has no provided type
- protected function writeObjects($items) {
- ERROR: UndefinedClass - Civi/Api4/Generic/Traits/CustomValueActionTrait.php:51:19 - Class or interface CRM_Core_BAO_CustomValueTable does not exist
- $result[] = \CRM_Core_BAO_CustomValueTable::setValues($item);
- INFO: MissingReturnType - Civi/Api4/Generic/Traits/CustomValueActionTrait.php:59:22 - Method Civi\Api4\Generic\Traits\CustomValueActionTrait::deleteObjects does not have a return type, expecting array<int, mixed>
- protected function deleteObjects($items) {
- INFO: MissingParamType - Civi/Api4/Generic/Traits/CustomValueActionTrait.php:59:36 - Parameter $items has no provided type
- protected function deleteObjects($items) {
- ERROR: UndefinedClass - Civi/Api4/Generic/Traits/CustomValueActionTrait.php:63:7 - Class or interface CRM_Utils_Hook does not exist
- \CRM_Utils_Hook::pre('delete', $this->getEntityName(), $item['id'], \CRM_Core_DAO::$_nullArray);
- ERROR: UndefinedClass - Civi/Api4/Generic/Traits/CustomValueActionTrait.php:64:7 - Class or interface CRM_Utils_SQL_Delete does not exist
- \CRM_Utils_SQL_Delete::from($customTable)
- ERROR: UndefinedClass - Civi/Api4/Generic/Traits/CustomValueActionTrait.php:68:7 - Class or interface CRM_Utils_Hook does not exist
- \CRM_Utils_Hook::post('delete', $this->getEntityName(), $item['id'], \CRM_Core_DAO::$_nullArray);
- INFO: MissingReturnType - Civi/Api4/Generic/Traits/CustomValueActionTrait.php:77:22 - Method Civi\Api4\Generic\Traits\CustomValueActionTrait::fillDefaults does not have a return type, expecting void
- protected function fillDefaults(&$params) {
- INFO: MissingParamType - Civi/Api4/Generic/Traits/CustomValueActionTrait.php:77:36 - Parameter $params has no provided type
- protected function fillDefaults(&$params) {
- ERROR: UndefinedDocblockClass - Civi/Api4/Generic/Traits/DAOActionTrait.php:11:14 - Docblock-defined class or interface CRM_Core_DAO does not exist
- /**
- * @return \CRM_Core_DAO|string
- */
- protected function getBaoName() {
- require_once 'api/v3/utils.php';
- return \_civicrm_api3_get_BAO($this->getEntityName());
- }
- ERROR: MissingFile - Civi/Api4/Generic/Traits/DAOActionTrait.php:14:5 - Cannot find file /home/coolife/git-repos/gsoc/api/api/v3/utils.php to include
- require_once 'api/v3/utils.php';
- ERROR: MissingDependency - Civi/Api4/Generic/Traits/DAOActionTrait.php:41:18 - Civi\Api4\Query\Api4SelectQuery depends on class or interface civi\api\selectquery that does not exist
- $query = new Api4SelectQuery($this->getEntityName(), $this->getCheckPermissions());
- ERROR: UndefinedClass - Civi/Api4/Generic/Traits/DAOActionTrait.php:69:15 - Class or interface CRM_Utils_Array does not exist
- $method = UtilsArray::value($this->getEntityName(), $oddballs, 'create');
- INFO: MissingParamType - Civi/Api4/Generic/Traits/DAOActionTrait.php:128:40 - Parameter $params has no provided type
- private function genericCreateMethod($params) {
- ERROR: UndefinedClass - Civi/Api4/Generic/Traits/DAOActionTrait.php:132:5 - Class or interface CRM_Utils_Hook does not exist
- \CRM_Utils_Hook::pre($hook, $this->getEntityName(), UtilsArray::value('id', $params), $params);
- ERROR: InvalidReturnType - Civi/Api4/Generic/Traits/DAOActionTrait.php:145:14 - No return statements were found for method Civi\Api4\Generic\Traits\DAOActionTrait::formatCustomParams but return type 'mixed' was expected
- /**
- * @param array $params
- * @param int $entityId
- * @return mixed
- */
- private function formatCustomParams(&$params, $entityId) {
- $customParams = [];
- // $customValueID is the ID of the custom value in the custom table for this
- ERROR: UndefinedClass - Civi/Api4/Generic/Traits/DAOActionTrait.php:159:24 - Class or interface CRM_Core_BAO_CustomField does not exist
- $customFieldId = \CRM_Core_BAO_CustomField::getFieldValue(
- ERROR: UndefinedClass - Civi/Api4/Generic/Traits/DAOActionTrait.php:165:26 - Class or interface CRM_Core_BAO_CustomField does not exist
- $customFieldType = \CRM_Core_BAO_CustomField::getFieldValue(
- ERROR: UndefinedClass - Civi/Api4/Generic/Traits/DAOActionTrait.php:171:29 - Class or interface CRM_Core_BAO_CustomGroup does not exist
- $customFieldExtends = \CRM_Core_BAO_CustomGroup::getFieldValue(
- ERROR: UndefinedFunction - Civi/Api4/Generic/Traits/DAOActionTrait.php:183:11 - Function Civi\Api4\Generic\Traits\formatCheckBoxField does not exist
- formatCheckBoxField($value, 'custom_' . $customFieldId, $this->getEntityName());
- ERROR: TypeDoesNotContainType - Civi/Api4/Generic/Traits/DAOActionTrait.php:200:9 - Found a contradiction when evaluating $customParams and trying to reconcile type 'array<empty, empty>' to !falsy
- if ($customParams) {
- ERROR: TypeDoesNotContainType - Civi/Api4/Generic/Traits/DAOActionTrait.php:200:9 - Found a contradiction when evaluating $customParams and trying to reconcile type 'array<empty, empty>' to !falsy
- if ($customParams) {
- ERROR: TypeDoesNotContainType - Civi/Api4/Generic/Traits/DAOActionTrait.php:200:9 - Found a contradiction when evaluating $customParams and trying to reconcile type 'array<empty, empty>' to !falsy
- if ($customParams) {
- ERROR: TypeDoesNotContainType - Civi/Api4/Generic/Traits/DAOActionTrait.php:200:9 - Found a contradiction when evaluating $customParams and trying to reconcile type 'array<empty, empty>' to !falsy
- if ($customParams) {
- ERROR: UndefinedClass - Civi/Api4/Provider/ActionObjectProvider.php:41:39 - Class or interface Symfony\Component\EventDispatcher\EventSubscriberInterface does not exist
- class ActionObjectProvider implements EventSubscriberInterface, ProviderInterface {
- ERROR: UndefinedClass - Civi/Api4/Query/Api4SelectQuery.php:54:31 - Class or interface Civi\API\SelectQuery does not exist
- class Api4SelectQuery extends SelectQuery {
- INFO: PropertyNotSetInConstructor - Civi/Api4/Service/Schema/Joinable/ActivityToActivityContactAssigneesJoinable.php:5:7 - Property Civi\Api4\Service\Schema\Joinable\Joinable::$alias is not defined in constructor of Civi\Api4\Service\Schema\Joinable\ActivityToActivityContactAssigneesJoinable or in any methods called in the constructor
- class ActivityToActivityContactAssigneesJoinable extends Joinable {
- INFO: MissingParamType - Civi/Api4/Service/Schema/Joinable/ActivityToActivityContactAssigneesJoinable.php:19:31 - Parameter $alias has no provided type
- public function __construct($alias) {
- INFO: PropertyNotSetInConstructor - Civi/Api4/Service/Schema/Joinable/BridgeJoinable.php:5:7 - Property Civi\Api4\Service\Schema\Joinable\Joinable::$baseTable is not defined in constructor of Civi\Api4\Service\Schema\Joinable\BridgeJoinable or in any methods called in the constructor
- class BridgeJoinable extends Joinable {
- INFO: MissingParamType - Civi/Api4/Service/Schema/Joinable/BridgeJoinable.php:11:31 - Parameter $targetTable has no provided type
- public function __construct($targetTable, $targetColumn, $alias, Joinable $middleLink) {
- INFO: MissingParamType - Civi/Api4/Service/Schema/Joinable/BridgeJoinable.php:11:45 - Parameter $targetColumn has no provided type
- public function __construct($targetTable, $targetColumn, $alias, Joinable $middleLink) {
- INFO: MissingParamType - Civi/Api4/Service/Schema/Joinable/BridgeJoinable.php:11:60 - Parameter $alias has no provided type
- public function __construct($targetTable, $targetColumn, $alias, Joinable $middleLink) {
- INFO: PropertyNotSetInConstructor - Civi/Api4/Service/Schema/Joinable/CustomGroupJoinable.php:7:7 - Property Civi\Api4\Service\Schema\Joinable\Joinable::$baseTable is not defined in constructor of Civi\Api4\Service\Schema\Joinable\CustomGroupJoinable or in any methods called in the constructor
- class CustomGroupJoinable extends Joinable {
- INFO: MissingParamType - Civi/Api4/Service/Schema/Joinable/CustomGroupJoinable.php:27:31 - Parameter $targetTable has no provided type
- public function __construct($targetTable, $alias, $isMultiRecord, $entity, $columns) {
- INFO: MissingParamType - Civi/Api4/Service/Schema/Joinable/CustomGroupJoinable.php:27:45 - Parameter $alias has no provided type
- public function __construct($targetTable, $alias, $isMultiRecord, $entity, $columns) {
- INFO: MissingParamType - Civi/Api4/Service/Schema/Joinable/CustomGroupJoinable.php:27:78 - Parameter $columns has no provided type
- public function __construct($targetTable, $alias, $isMultiRecord, $entity, $columns) {
- ERROR: PossiblyNullPropertyAssignmentValue - Civi/Api4/Service/Schema/Joinable/CustomGroupJoinable.php:28:21 - $this->entity with non-nullable declared type 'string' cannot be assigned nullable type 'null'
- $this->entity = $entity;
- ERROR: InvalidPropertyAssignmentValue - Civi/Api4/Service/Schema/Joinable/CustomGroupJoinable.php:31:23 - $this->joinType with declared type 'int' cannot be assigned type 'string(1_to_n)|string(1_to_1)'
- $this->joinType = $isMultiRecord ?
- self::JOIN_TYPE_ONE_TO_MANY : self::JOIN_TYPE_ONE_TO_ONE;
- INFO: MissingParamType - Civi/Api4/Service/Schema/Joinable/CustomGroupJoinable.php:54:28 - Parameter $fieldName has no provided type
- public function getField($fieldName) {
- INFO: MissingParamType - Civi/Api4/Service/Schema/Joinable/CustomGroupJoinable.php:67:32 - Parameter $fieldName has no provided type
- public function getSqlColumn($fieldName) {
- INFO: PropertyNotSetInConstructor - Civi/Api4/Service/Schema/Joinable/Joinable.php:20:13 - Property Civi\Api4\Service\Schema\Joinable\Joinable::$baseTable is not defined in constructor of Civi\Api4\Service\Schema\Joinable\Joinable or in any methods called in the constructor
- protected $baseTable;
- INFO: PropertyNotSetInConstructor - Civi/Api4/Service/Schema/Joinable/Joinable.php:25:13 - Property Civi\Api4\Service\Schema\Joinable\Joinable::$baseColumn is not defined in constructor of Civi\Api4\Service\Schema\Joinable\Joinable or in any methods called in the constructor
- protected $baseColumn;
- INFO: PropertyNotSetInConstructor - Civi/Api4/Service/Schema/Joinable/Joinable.php:42:13 - Property Civi\Api4\Service\Schema\Joinable\Joinable::$alias is not defined in constructor of Civi\Api4\Service\Schema\Joinable\Joinable or in any methods called in the constructor
- protected $alias;
- ERROR: InvalidPropertyAssignmentValue - Civi/Api4/Service/Schema/Joinable/Joinable.php:57:25 - $this->joinType with declared type 'int' cannot be assigned type 'string(1_to_1)'
- protected $joinType = self::JOIN_TYPE_ONE_TO_ONE;
- INFO: PropertyNotSetInConstructor - Civi/Api4/Service/Schema/Joinable/Joinable.php:62:13 - Property Civi\Api4\Service\Schema\Joinable\Joinable::$entity is not defined in constructor of Civi\Api4\Service\Schema\Joinable\Joinable or in any methods called in the constructor
- protected $entity;
- INFO: PropertyNotSetInConstructor - Civi/Api4/Service/Schema/Joinable/Joinable.php:67:13 - Property Civi\Api4\Service\Schema\Joinable\Joinable::$entityFields is not defined in constructor of Civi\Api4\Service\Schema\Joinable\Joinable or in any methods called in the constructor
- protected $entityFields;
- INFO: MissingParamType - Civi/Api4/Service/Schema/Joinable/Joinable.php:74:31 - Parameter $targetTable has no provided type
- public function __construct($targetTable, $targetColumn, $alias = NULL) {
- INFO: MissingParamType - Civi/Api4/Service/Schema/Joinable/Joinable.php:74:45 - Parameter $targetColumn has no provided type
- public function __construct($targetTable, $targetColumn, $alias = NULL) {
- INFO: UninitializedProperty - Civi/Api4/Service/Schema/Joinable/Joinable.php:77:10 - Cannot use uninitialized property $this->entity
- if (!$this->entity) {
- ERROR: UndefinedClass - Civi/Api4/Service/Schema/Joinable/Joinable.php:78:23 - Class or interface CRM_Core_DAO_AllCoreTables does not exist
- $this->entity = Tables::getBriefName(Tables::getClassForTable($targetTable));
- INFO: MissingParamType - Civi/Api4/Service/Schema/Joinable/Joinable.php:183:32 - Parameter $condition has no provided type
- public function addCondition($condition) {
- ERROR: UndefinedClass - Civi/Api4/Service/Schema/Joinable/Joinable.php:255:14 - Class or interface CRM_Core_DAO_AllCoreTables does not exist
- $bao = Tables::getClassForTable($this->getTargetTable());
- INFO: MissingParamType - Civi/Api4/Service/Schema/Joinable/Joinable.php:268:28 - Parameter $fieldName has no provided type
- public function getField($fieldName) {
- INFO: PropertyNotSetInConstructor - Civi/Api4/Service/Schema/Joinable/OptionValueJoinable.php:5:7 - Property Civi\Api4\Service\Schema\Joinable\Joinable::$baseTable is not defined in constructor of Civi\Api4\Service\Schema\Joinable\OptionValueJoinable or in any methods called in the constructor
- class OptionValueJoinable extends Joinable {
- ERROR: PossiblyNullArgument - Civi/Api4/Service/Schema/Joinable/OptionValueJoinable.php:33:57 - Argument 2 of sprintf cannot be null, possibly null value provided
- $condition = sprintf('%s.option_group_id = (%s)', $alias, $subQuery);
- ERROR: PossiblyNullArgument - Civi/Api4/Service/Schema/Joinable/OptionValueJoinable.php:36:55 - Argument 2 of sprintf cannot be null, possibly null value provided
- $condition = sprintf('%s.option_group_id = %d', $alias, $optionGroup);
- ERROR: MissingDependency - Civi/Api4/Service/Schema/Joiner.php:38:24 - Civi\Api4\Query\Api4SelectQuery depends on class or interface civi\api\selectquery that does not exist
- public function join(Api4SelectQuery $query, $joinPath, $side = 'LEFT') {
- ERROR: MissingDependency - Civi/Api4/Service/Schema/Joiner.php:62:27 - Civi\Api4\Query\Api4SelectQuery depends on class or interface civi\api\selectquery that does not exist
- public function canJoin(Api4SelectQuery $query, $joinPath) {
- INFO: MissingParamType - Civi/Api4/Service/Schema/SchemaMap.php:24:27 - Parameter $baseTableName has no provided type
- public function getPath($baseTableName, $targetTableAlias) {
- INFO: MissingParamType - Civi/Api4/Service/Schema/SchemaMap.php:24:43 - Parameter $targetTableAlias has no provided type
- public function getPath($baseTableName, $targetTableAlias) {
- ERROR: InvalidOperand - Civi/Api4/Service/Schema/SchemaMap.php:38:58 - Cannot perform a numeric operation with a non-numeric type array-key
- $end = array_slice($path, $index, count($path) - $index);
- ERROR: LoopInvalidation - Civi/Api4/Service/Schema/SchemaMap.php:39:9 - Variable $path has already been assigned in a for/foreach loop
- $path = array_merge($start, $middle, $end);
- INFO: MissingParamType - Civi/Api4/Service/Schema/SchemaMap.php:58:34 - Parameter $name has no provided type
- public function getTableByName($name) {
- INFO: MissingReturnType - Civi/Api4/Service/Schema/SchemaMap.php:86:19 - Method Civi\Api4\Service\Schema\SchemaMap::addTables does not have a return type, expecting void
- public function addTables(array $tables) {
- INFO: MissingReturnType - Civi/Api4/Service/Schema/SchemaMap.php:106:20 - Method Civi\Api4\Service\Schema\SchemaMap::findPaths does not have a return type, expecting void
- private function findPaths(Table $table, $target, $depth, &$path, $currentPath = []
- ERROR: UndefinedDocblockClass - Civi/Api4/Service/Schema/SchemaMapBuilder.php:17:11 - Docblock-defined class or interface Symfony\Component\EventDispatcher\EventDispatcherInterface does not exist
- /**
- * @var EventDispatcherInterface
- */
- protected $dispatcher;
- INFO: PropertyNotSetInConstructor - Civi/Api4/Service/Schema/SchemaMapBuilder.php:19:13 - Property Civi\Api4\Service\Schema\SchemaMapBuilder::$dispatcher is not defined in constructor of Civi\Api4\Service\Schema\SchemaMapBuilder or in any methods called in the constructor
- protected $dispatcher;
- INFO: PropertyNotSetInConstructor - Civi/Api4/Service/Schema/SchemaMapBuilder.php:23:13 - Property Civi\Api4\Service\Schema\SchemaMapBuilder::$apiEntities is not defined in constructor of Civi\Api4\Service\Schema\SchemaMapBuilder or in any methods called in the constructor
- protected $apiEntities;
- ERROR: UndefinedClass - Civi/Api4/Service/Schema/SchemaMapBuilder.php:28:31 - Class or interface Symfony\Component\EventDispatcher\EventDispatcherInterface does not exist
- public function __construct(EventDispatcherInterface $dispatcher) {
- ERROR: MissingDependency - Civi/Api4/Service/Schema/SchemaMapBuilder.php:40:18 - Civi\Api4\Event\SchemaMapBuildEvent depends on class or interface symfony\component\eventdispatcher\event that does not exist
- $event = new SchemaMapBuildEvent($map);
- INFO: MissingReturnType - Civi/Api4/Service/Schema/SchemaMapBuilder.php:51:20 - Method Civi\Api4\Service\Schema\SchemaMapBuilder::loadTables does not have a return type, expecting void
- private function loadTables(SchemaMap $map) {
- ERROR: UndefinedClass - Civi/Api4/Service/Schema/SchemaMapBuilder.php:53:14 - Class or interface CRM_Core_DAO_AllCoreTables does not exist
- foreach (TableHelper::get() as $daoName => $data) {
- INFO: MissingReturnType - Civi/Api4/Service/Schema/SchemaMapBuilder.php:72:20 - Method Civi\Api4\Service\Schema\SchemaMapBuilder::addJoins does not have a return type, expecting void
- private function addJoins(Table $table, $field, array $data) {
- ERROR: UndefinedClass - Civi/Api4/Service/Schema/SchemaMapBuilder.php:73:16 - Class or interface CRM_Utils_Array does not exist
- $fkClass = UtilsArray::value('FKClassName', $data);
- INFO: MissingReturnType - Civi/Api4/Service/Schema/SchemaMapBuilder.php:94:20 - Method Civi\Api4\Service\Schema\SchemaMapBuilder::addPseudoConstantJoin does not have a return type, expecting void
- private function addPseudoConstantJoin(Table $table, $field, array $data) {
- ERROR: UndefinedClass - Civi/Api4/Service/Schema/SchemaMapBuilder.php:95:23 - Class or interface CRM_Utils_Array does not exist
- $pseudoConstant = UtilsArray::value('pseudoconstant', $data);
- INFO: MissingReturnType - Civi/Api4/Service/Schema/SchemaMapBuilder.php:126:20 - Method Civi\Api4\Service\Schema\SchemaMapBuilder::addBackReferences does not have a return type, expecting void
- private function addBackReferences(SchemaMap $map) {
- ERROR: PossiblyNullReference - Civi/Api4/Service/Schema/SchemaMapBuilder.php:139:18 - Cannot call method addTableLink on possibly null value
- $target->addTableLink($link->getTargetColumn(), $joinable);
- INFO: MissingReturnType - Civi/Api4/Service/Schema/SchemaMapBuilder.php:171:20 - Method Civi\Api4\Service\Schema\SchemaMapBuilder::addCustomFields does not have a return type, expecting void
- private function addCustomFields(SchemaMap $map, Table $baseTable, $entity) {
- ERROR: UndefinedClass - Civi/Api4/Service/Schema/SchemaMapBuilder.php:173:36 - Class or interface CRM_Core_SelectValues does not exist
- if (!array_key_exists($entity, \CRM_Core_SelectValues::customGroupExtends())) {
- ERROR: UndefinedClass - Civi/Api4/Service/Schema/SchemaMapBuilder.php:180:18 - Class or interface CRM_Utils_SQL_Select does not exist
- $fieldData = \CRM_Utils_SQL_Select::from('civicrm_custom_field f')
- INFO: MissingParamType - Civi/Api4/Service/Schema/Table.php:23:31 - Parameter $name has no provided type
- public function __construct($name) {
- INFO: MissingReturnType - Civi/Api4/Service/Schema/Table.php:65:19 - Method Civi\Api4\Service\Schema\Table::removeLink does not have a return type, expecting void
- public function removeLink(Joinable $linkToRemove) {
- INFO: MissingParamType - Civi/Api4/Service/Schema/Table.php:115:28 - Parameter $target has no provided type
- private function hasLink($target, $targetCol, $alias) {
- INFO: MissingParamType - Civi/Api4/Service/Schema/Table.php:115:37 - Parameter $targetCol has no provided type
- private function hasLink($target, $targetCol, $alias) {
- INFO: MissingParamType - Civi/Api4/Service/Schema/Table.php:115:49 - Parameter $alias has no provided type
- private function hasLink($target, $targetCol, $alias) {
- INFO: PropertyNotSetInConstructor - Civi/Api4/Service/Spec/CustomFieldSpec.php:5:7 - Property Civi\Api4\Service\Spec\FieldSpec::$title is not defined in constructor of Civi\Api4\Service\Spec\CustomFieldSpec or in any methods called in the constructor
- class CustomFieldSpec extends FieldSpec {
- INFO: PropertyNotSetInConstructor - Civi/Api4/Service/Spec/CustomFieldSpec.php:9:13 - Property Civi\Api4\Service\Spec\CustomFieldSpec::$customFieldId is not defined in constructor of Civi\Api4\Service\Spec\CustomFieldSpec or in any methods called in the constructor
- protected $customFieldId;
- INFO: PropertyNotSetInConstructor - Civi/Api4/Service/Spec/CustomFieldSpec.php:14:13 - Property Civi\Api4\Service\Spec\CustomFieldSpec::$customGroup is not defined in constructor of Civi\Api4\Service\Spec\CustomFieldSpec or in any methods called in the constructor
- protected $customGroup;
- INFO: PropertyNotSetInConstructor - Civi/Api4/Service/Spec/CustomFieldSpec.php:19:13 - Property Civi\Api4\Service\Spec\CustomFieldSpec::$tableName is not defined in constructor of Civi\Api4\Service\Spec\CustomFieldSpec or in any methods called in the constructor
- protected $tableName;
- INFO: PropertyNotSetInConstructor - Civi/Api4/Service/Spec/CustomFieldSpec.php:24:13 - Property Civi\Api4\Service\Spec\CustomFieldSpec::$columnName is not defined in constructor of Civi\Api4\Service\Spec\CustomFieldSpec or in any methods called in the constructor
- protected $columnName;
- INFO: MissingParamType - Civi/Api4/Service/Spec/CustomFieldSpec.php:29:31 - Parameter $dataType has no provided type
- public function setDataType($dataType) {
- ERROR: InvalidPropertyAssignmentValue - Civi/Api4/Service/Spec/CustomFieldSpec.php:77:26 - $this->customGroup with declared type 'int' cannot be assigned type 'string'
- $this->customGroup = $customGroupName;
- INFO: PropertyNotSetInConstructor - Civi/Api4/Service/Spec/FieldSpec.php:21:13 - Property Civi\Api4\Service\Spec\FieldSpec::$title is not defined in constructor of Civi\Api4\Service\Spec\FieldSpec or in any methods called in the constructor
- protected $title;
- INFO: PropertyNotSetInConstructor - Civi/Api4/Service/Spec/FieldSpec.php:31:13 - Property Civi\Api4\Service\Spec\FieldSpec::$description is not defined in constructor of Civi\Api4\Service\Spec\FieldSpec or in any methods called in the constructor
- protected $description;
- INFO: PropertyNotSetInConstructor - Civi/Api4/Service/Spec/FieldSpec.php:41:13 - Property Civi\Api4\Service\Spec\FieldSpec::$requiredIf is not defined in constructor of Civi\Api4\Service\Spec\FieldSpec or in any methods called in the constructor
- protected $requiredIf;
- INFO: PropertyNotSetInConstructor - Civi/Api4/Service/Spec/FieldSpec.php:46:13 - Property Civi\Api4\Service\Spec\FieldSpec::$options is not defined in constructor of Civi\Api4\Service\Spec\FieldSpec or in any methods called in the constructor
- protected $options;
- INFO: PropertyNotSetInConstructor - Civi/Api4/Service/Spec/FieldSpec.php:56:13 - Property Civi\Api4\Service\Spec\FieldSpec::$fkEntity is not defined in constructor of Civi\Api4\Service\Spec\FieldSpec or in any methods called in the constructor
- protected $fkEntity;
- INFO: PropertyNotSetInConstructor - Civi/Api4/Service/Spec/FieldSpec.php:61:13 - Property Civi\Api4\Service\Spec\FieldSpec::$serialize is not defined in constructor of Civi\Api4\Service\Spec\FieldSpec or in any methods called in the constructor
- protected $serialize;
- INFO: InvalidDocblockParamName - Civi/Api4/Service/Spec/FieldSpec.php:190:18 - Incorrect param name $required in docblock for Civi\Api4\Service\Spec\FieldSpec::setRequiredIf
- /**
- * @param bool $required
- *
- * @return $this
- */
- public function setRequiredIf($requiredIf) {
- INFO: MissingParamType - Civi/Api4/Service/Spec/FieldSpec.php:194:33 - Parameter $requiredIf has no provided type
- public function setRequiredIf($requiredIf) {
- INFO: MissingParamType - Civi/Api4/Service/Spec/FieldSpec.php:213:31 - Parameter $dataType has no provided type
- public function setDataType($dataType) {
- INFO: MissingReturnType - Civi/Api4/Service/Spec/FieldSpec.php:237:19 - Method Civi\Api4\Service\Spec\FieldSpec::setSerialize does not have a return type, expecting void
- public function setSerialize($serialize) {
- ERROR: PossiblyNullPropertyAssignmentValue - Civi/Api4/Service/Spec/FieldSpec.php:238:24 - $this->serialize with non-nullable declared type 'int' cannot be assigned nullable type 'int|null'
- $this->serialize = $serialize;
- ERROR: UndefinedClass - Civi/Api4/Service/Spec/FieldSpec.php:250:24 - Class or interface CRM_Utils_Type does not exist
- return array_merge(\CRM_Utils_Type::dataTypes(), $extraTypes);
- INFO: InvalidStringClass - Civi/Api4/Service/Spec/FieldSpec.php:266:18 - String cannot be used as a class
- $options = $dao::buildOptions($fieldName);
- ERROR: UndefinedClass - Civi/Api4/Service/Spec/FieldSpec.php:266:18 - Class or interface CRM_Core_DAO does not exist
- $options = $dao::buildOptions($fieldName);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/ActionScheduleCreationSpecProvider.php:13:37 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('title')->setRequired(TRUE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/ActionScheduleCreationSpecProvider.php:14:42 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('mapping_id')->setRequired(TRUE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/ActionScheduleCreationSpecProvider.php:15:44 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('entity_value')->setRequired(TRUE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/ActionScheduleCreationSpecProvider.php:16:49 - Cannot call method setRequiredIf on possibly null value
- $spec->getFieldByName('start_action_date')->setRequiredIf('empty($values.absolute_date)');
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/ActionScheduleCreationSpecProvider.php:17:45 - Cannot call method setRequiredIf on possibly null value
- $spec->getFieldByName('absolute_date')->setRequiredIf('empty($values.start_action_date)');
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/AddressCreationSpecProvider.php:15:42 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('contact_id')->setRequired(TRUE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/AddressCreationSpecProvider.php:16:48 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('location_type_id')->setRequired(TRUE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/ContactCreationSpecProvider.php:14:9 - Cannot call method setRequired on possibly null value
- ->setRequired(TRUE)
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/ContactCreationSpecProvider.php:17:42 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('is_opt_out')->setRequired(FALSE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/ContactCreationSpecProvider.php:18:42 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('is_deleted')->setRequired(FALSE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/ContactTypeCreationSpecProvider.php:13:37 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('label')->setRequired(TRUE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/ContactTypeCreationSpecProvider.php:14:36 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('name')->setRequired(TRUE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/ContactTypeCreationSpecProvider.php:15:41 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('parent_id')->setRequired(TRUE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/ContributionCreationSpecProvider.php:12:49 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('financial_type_id')->setRequired(TRUE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/ContributionCreationSpecProvider.php:13:44 - Cannot call method setDefaultValue on possibly null value
- $spec->getFieldByName('receive_date')->setDefaultValue('now');
- ERROR: InvalidReturnType - Civi/Api4/Service/Spec/Provider/CustomGroupCreationSpecProvider.php:11:19 - The declared return type 'void' for Civi\Api4\Service\Spec\Provider\CustomGroupCreationSpecProvider::modifySpec is incorrect, got 'Civi\Api4\Service\Spec\FieldSpec'
- public function modifySpec(RequestSpec $spec) {
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/CustomGroupCreationSpecProvider.php:12:46 - Cannot call method setRequired on possibly null value
- return $spec->getFieldByName('extends')->setRequired(TRUE);
- ERROR: UndefinedFunction - Civi/Api4/Service/Spec/Provider/CustomValueSpecProvider.php:17:26 - Function Civi\Api4\Service\Spec\Provider\ts does not exist
- $idField->setTitle(ts('Custom Value ID'));
- ERROR: InvalidReturnType - Civi/Api4/Service/Spec/Provider/CustomValueSpecProvider.php:30:19 - The declared return type 'bool' for Civi\Api4\Service\Spec\Provider\CustomValueSpecProvider::applies is incorrect, got 'string|false'
- public function applies($entity, $action) {
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/EmailCreationSpecProvider.php:12:42 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('contact_id')->setRequired(TRUE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/EmailCreationSpecProvider.php:13:37 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('email')->setRequired(TRUE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/EmailCreationSpecProvider.php:14:39 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('on_hold')->setRequired(FALSE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/EmailCreationSpecProvider.php:15:43 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('is_bulkmail')->setRequired(FALSE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/EntityTagCreationSpecProvider.php:14:44 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('entity_table')->setRequired(TRUE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/EventCreationSpecProvider.php:12:43 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('is_template')->setRequired(FALSE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/GroupCreationSpecProvider.php:12:37 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('title')->setRequired(TRUE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/NavigationCreationSpecProvider.php:12:41 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('domain_id')->setRequired(FALSE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/NoteCreationSpecProvider.php:14:36 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('note')->setRequired(TRUE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/NoteCreationSpecProvider.php:15:44 - Cannot call method setDefaultValue on possibly null value
- $spec->getFieldByName('entity_table')->setDefaultValue('civicrm_contact');
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/OptionValueCreationSpecProvider.php:12:38 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('weight')->setRequired(FALSE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/OptionValueCreationSpecProvider.php:13:37 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('value')->setRequired(FALSE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/PhoneCreationSpecProvider.php:12:42 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('contact_id')->setRequired(TRUE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/PhoneCreationSpecProvider.php:13:37 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('phone')->setRequired(TRUE);
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/TagCreationSpecProvider.php:14:40 - Cannot call method setDefaultValue on possibly null value
- $spec->getFieldByName('used_for')->setDefaultValue('civicrm_contact');
- ERROR: PossiblyNullReference - Civi/Api4/Service/Spec/Provider/UFFieldCreationSpecProvider.php:12:37 - Cannot call method setRequired on possibly null value
- $spec->getFieldByName('label')->setRequired(FALSE);
- INFO: MissingReturnType - Civi/Api4/Service/Spec/RequestSpec.php:31:19 - Method Civi\Api4\Service\Spec\RequestSpec::addFieldSpec does not have a return type, expecting void
- public function addFieldSpec(FieldSpec $field) {
- INFO: MissingParamType - Civi/Api4/Service/Spec/RequestSpec.php:40:34 - Parameter $name has no provided type
- public function getFieldByName($name) {
- ERROR: UndefinedClass - Civi/Api4/Service/Spec/SpecFormatter.php:47:32 - Class or interface CRM_Utils_Array does not exist
- $field->setCustomFieldId(ArrayHelper::value('id', $data));
- ERROR: UndefinedClass - Civi/Api4/Service/Spec/SpecFormatter.php:111:20 - Class or interface CRM_Utils_Array does not exist
- $dataTypeInt = ArrayHelper::value('type', $data);
- ERROR: UndefinedDocblockClass - Civi/Api4/Service/Spec/SpecGatherer.php:19:11 - Docblock-defined class or interface CRM_Core_DAO does not exist
- /**
- * A cache of DAOs based on entity
- *
- * @var \CRM_Core_DAO[]
- */
- protected $DAONames;
- INFO: MissingConstructor - Civi/Api4/Service/Spec/SpecGatherer.php:21:13 - Civi\Api4\Service\Spec\SpecGatherer has an uninitialized variable $this->DAONames, but no constructor
- protected $DAONames;
- INFO: MissingParamType - Civi/Api4/Service/Spec/SpecGatherer.php:34:45 - Parameter $includeCustom has no provided type
- public function getSpec($entity, $action, $includeCustom) {
- ERROR: UndefinedClass - Civi/Api4/Service/Spec/SpecGatherer.php:40:55 - Class or interface CRM_Core_SelectValues does not exist
- if ($includeCustom && array_key_exists($entity, \CRM_Core_SelectValues::customGroupExtends())) {
- INFO: MissingReturnType - Civi/Api4/Service/Spec/SpecGatherer.php:61:19 - Method Civi\Api4\Service\Spec\SpecGatherer::addSpecProvider does not have a return type, expecting void
- public function addSpecProvider(SpecProviderInterface $provider) {
- INFO: MissingReturnType - Civi/Api4/Service/Spec/SpecGatherer.php:69:20 - Method Civi\Api4\Service\Spec\SpecGatherer::addDAOFields does not have a return type, expecting void
- private function addDAOFields($entity, $action, RequestSpec $specification) {
- INFO: MissingParamType - Civi/Api4/Service/Spec/SpecGatherer.php:69:42 - Parameter $action has no provided type
- private function addDAOFields($entity, $action, RequestSpec $specification) {
- INFO: MissingReturnType - Civi/Api4/Service/Spec/SpecGatherer.php:91:20 - Method Civi\Api4\Service\Spec\SpecGatherer::addCustomFields does not have a return type, expecting void
- private function addCustomFields($entity, RequestSpec $specification) {
- INFO: MissingReturnType - Civi/Api4/Service/Spec/SpecGatherer.php:109:20 - Method Civi\Api4\Service\Spec\SpecGatherer::getCustomGroupFields does not have a return type, expecting void
- private function getCustomGroupFields($customGroup, RequestSpec $specification) {
- INFO: InvalidStringClass - Civi/Api4/Service/Spec/SpecGatherer.php:129:12 - String cannot be used as a class
- return $dao::fields();
- ERROR: UndefinedClass - Civi/Api4/Service/Spec/SpecGatherer.php:129:12 - Class or interface CRM_Core_DAO does not exist
- return $dao::fields();
- INFO: MissingReturnType - Civi/Api4/Setting.php:14:26 - Method Civi\Api4\Setting::get does not have a return type, expecting Civi\Api4\Action\Setting\Get
- public static function get() {
- INFO: MissingReturnType - Civi/Api4/Setting.php:18:26 - Method Civi\Api4\Setting::set does not have a return type, expecting Civi\Api4\Action\Setting\Set
- public static function set() {
- INFO: MissingReturnType - Civi/Api4/Setting.php:22:26 - Method Civi\Api4\Setting::revert does not have a return type, expecting Civi\Api4\Action\Setting\Revert
- public static function revert() {
- INFO: MissingReturnType - Civi/Api4/Setting.php:26:26 - Method Civi\Api4\Setting::getFields does not have a return type, expecting Civi\Api4\Action\Setting\GetFields
- public static function getFields() {
- INFO: MissingReturnType - Civi/Api4/System.php:13:26 - Method Civi\Api4\System::flush does not have a return type, expecting Civi\Api4\Action\System\Flush
- public static function flush() {
- INFO: MissingReturnType - Civi/Api4/System.php:17:26 - Method Civi\Api4\System::check does not have a return type, expecting Civi\Api4\Action\System\Check
- public static function check() {
- INFO: MissingReturnType - Civi/Api4/System.php:21:26 - Method Civi\Api4\System::getFields does not have a return type, expecting Civi\Api4\Generic\BasicGetFieldsAction
- public static function getFields() {
- INFO: MissingParamType - Civi/Api4/Utils/ActionUtil.php:13:36 - Parameter $entityName has no provided type
- public static function getAction($entityName, $actionName) {
- INFO: MissingParamType - Civi/Api4/Utils/ActionUtil.php:13:49 - Parameter $actionName has no provided type
- public static function getAction($entityName, $actionName) {
- ERROR: UndefinedClass - Civi/Api4/Utils/ActionUtil.php:21:19 - Class or interface Civi\API\Exception\NotImplementedException does not exist
- throw new \Civi\API\Exception\NotImplementedException("API ($entityName, $actionName) does not exist (join the API team and implement it!)");
- INFO: MissingReturnType - Civi/Api4/Utils/ArrayInsertionUtil.php:20:26 - Method Civi\Api4\Utils\ArrayInsertionUtil::insert does not have a return type, expecting void
- public static function insert(&$array, $parts, $values) {
- INFO: MissingParamType - Civi/Api4/Utils/ArrayInsertionUtil.php:20:34 - Parameter $array has no provided type
- public static function insert(&$array, $parts, $values) {
- INFO: MissingParamType - Civi/Api4/Utils/ArrayInsertionUtil.php:49:40 - Parameter $parentArray has no provided type
- private static function filterValues($parentArray, $isMulti, $values) {
- INFO: MissingParamType - Civi/Api4/Utils/ArrayInsertionUtil.php:49:54 - Parameter $isMulti has no provided type
- private static function filterValues($parentArray, $isMulti, $values) {
- INFO: MissingParamType - Civi/Api4/Utils/ArrayInsertionUtil.php:49:64 - Parameter $values has no provided type
- private static function filterValues($parentArray, $isMulti, $values) {
- ERROR: UndefinedClass - Civi/Api4/Utils/ArrayInsertionUtil.php:50:17 - Class or interface CRM_Utils_Array does not exist
- $parentID = UtilsArray::value('id', $parentArray);
- ERROR: MissingFile - Civi/Api4/Utils/CoreUtil.php:7:1 - Cannot find file /home/coolife/git-repos/gsoc/api/api/v3/utils.php to include
- require_once 'api/v3/utils.php';
- ERROR: UndefinedDocblockClass - Civi/Api4/Utils/CoreUtil.php:16:14 - Docblock-defined class or interface CRM_Core_DAO does not exist
- /**
- * todo this class should not rely on api3 code
- *
- * @param $entityName
- *
- * @return \CRM_Core_DAO|string
- * The DAO name for use in static calls. Return doc block is hacked to allow
- * auto-completion of static methods
- */
- public static function getDAOFromApiName($entityName) {
- INFO: MissingParamType - Civi/Api4/Utils/CoreUtil.php:20:44 - Parameter $entityName has no provided type
- public static function getDAOFromApiName($entityName) {
- ERROR: UndefinedFunction - Civi/Api4/Utils/CoreUtil.php:24:12 - Function _civicrm_api3_get_DAO does not exist
- return \_civicrm_api3_get_DAO($entityName);
- ERROR: PossiblyNullArrayAccess - Civi/Api4/Utils/CoreUtil.php:35:12 - Cannot access array value on possibly null variable of type array<array-key, mixed>|null
- return CustomGroup::get()
- ->addSelect('table_name')
- ->addWhere('name', '=', $customGroupName)
- ->execute()
- ->first()['table_name'];
- ERROR: MissingFile - Civi/Api4/Utils/FormattingUtil.php:7:1 - Cannot find file /home/coolife/git-repos/gsoc/api/api/v3/utils.php to include
- require_once 'api/v3/utils.php';
- INFO: MissingReturnType - Civi/Api4/Utils/FormattingUtil.php:19:26 - Method Civi\Api4\Utils\FormattingUtil::formatWriteParams does not have a return type, expecting void
- public static function formatWriteParams(&$params, $entity, $fields) {
- INFO: MissingParamType - Civi/Api4/Utils/FormattingUtil.php:19:45 - Parameter $params has no provided type
- public static function formatWriteParams(&$params, $entity, $fields) {
- INFO: MissingParamType - Civi/Api4/Utils/FormattingUtil.php:19:54 - Parameter $entity has no provided type
- public static function formatWriteParams(&$params, $entity, $fields) {
- INFO: MissingParamType - Civi/Api4/Utils/FormattingUtil.php:19:63 - Parameter $fields has no provided type
- public static function formatWriteParams(&$params, $entity, $fields) {
- INFO: MissingReturnType - Civi/Api4/Utils/FormattingUtil.php:61:26 - Method Civi\Api4\Utils\FormattingUtil::formatValue does not have a return type, expecting void
- public static function formatValue(&$value, $fieldSpec, $entity) {
- INFO: MissingParamType - Civi/Api4/Utils/FormattingUtil.php:61:39 - Parameter $value has no provided type
- public static function formatValue(&$value, $fieldSpec, $entity) {
- INFO: MissingParamType - Civi/Api4/Utils/FormattingUtil.php:61:47 - Parameter $fieldSpec has no provided type
- public static function formatValue(&$value, $fieldSpec, $entity) {
- INFO: MissingParamType - Civi/Api4/Utils/FormattingUtil.php:61:59 - Parameter $entity has no provided type
- public static function formatValue(&$value, $fieldSpec, $entity) {
- ERROR: UndefinedClass - Civi/Api4/Utils/FormattingUtil.php:68:11 - Class or interface CRM_Utils_Array does not exist
- $fk = UtilsArray::value('fk_entity', $fieldSpec);
- ERROR: PossiblyUndefinedMethod - Civi/Api4/Utils/ReflectionUtils.php:42:46 - Method Reflector::getdoccomment does not exist
- $docs = self::parseDocBlock($reflection->getDocComment());
- ERROR: PossiblyUndefinedMethod - Civi/Api4/Utils/ReflectionUtils.php:50:32 - Method Reflector::getname does not exist
- $name = $reflection->getName();
- ERROR: UndefinedMethod - Civi/Api4/Utils/ReflectionUtils.php:51:43 - Method ReflectionClass::getdeclaringclass does not exist
- $reflectionClass = $reflection->getDeclaringClass()->getParentClass();
- ERROR: PossiblyUndefinedMethod - Civi/Api4/Utils/ReflectionUtils.php:58:41 - Method Reflector::getparentclass does not exist
- $newReflection = $reflection->getParentClass();
- ERROR: PossiblyInvalidCast - Civi/Api4/Utils/ReflectionUtils.php:110:56 - non-empty-array<int, string> cannot be cast to string
- $info['comment'] = isset($info['comment']) ? "{$info['comment']}\n$line" : $line;
- ERROR: PossiblyInvalidArgument - Civi/Api4/Utils/ReflectionUtils.php:114:31 - Argument 1 of trim expects string, possibly different type non-empty-array<int, string>|string|true provided
- $info['comment'] = trim($info['comment']);
- ERROR: LoopInvalidation - Civi/Api4/Utils/ReflectionUtils.php:133:7 - Variable $traits has already been assigned in a for/foreach loop
- $traits = array_merge(class_uses($trait), $traits);
- ERROR: UndefinedFunction - api4.civix.php:31:12 - Function ts does not exist
- return ts($text, $params);
- ERROR: UndefinedClass - api4.civix.php:46:20 - Class or interface CRM_Core_Resources does not exist
- return rtrim(CRM_Core_Resources::singleton()->getUrl(self::LONG_NAME), '/');
- ERROR: UndefinedClass - api4.civix.php:48:12 - Class or interface CRM_Core_Resources does not exist
- return CRM_Core_Resources::singleton()->getUrl(self::LONG_NAME, $file);
- INFO: MissingReturnType - api4.civix.php:87:10 - Method _api4_civix_civicrm_config does not have a return type, expecting void
- function _api4_civix_civicrm_config(&$config = NULL) {
- INFO: MissingParamType - api4.civix.php:87:38 - Parameter $config has no provided type
- function _api4_civix_civicrm_config(&$config = NULL) {
- ERROR: UndefinedClass - api4.civix.php:94:16 - Class or interface CRM_Core_Smarty does not exist
- $template =& CRM_Core_Smarty::singleton();
- INFO: MissingReturnType - api4.civix.php:117:10 - Method _api4_civix_civicrm_xmlMenu does not have a return type, expecting void
- function _api4_civix_civicrm_xmlMenu(&$files) {
- INFO: MissingParamType - api4.civix.php:117:39 - Parameter $files has no provided type
- function _api4_civix_civicrm_xmlMenu(&$files) {
- INFO: MissingReturnType - api4.civix.php:128:10 - Method _api4_civix_civicrm_install does not have a return type, expecting void
- function _api4_civix_civicrm_install() {
- INFO: MissingReturnType - api4.civix.php:140:10 - Method _api4_civix_civicrm_postInstall does not have a return type, expecting void
- function _api4_civix_civicrm_postInstall() {
- INFO: MissingReturnType - api4.civix.php:154:10 - Method _api4_civix_civicrm_uninstall does not have a return type, expecting void
- function _api4_civix_civicrm_uninstall() {
- INFO: MissingReturnType - api4.civix.php:166:10 - Method _api4_civix_civicrm_enable does not have a return type, expecting void
- function _api4_civix_civicrm_enable() {
- ERROR: InvalidReturnType - api4.civix.php:179:12 - No return statements were found for method _api4_civix_civicrm_disable but return type 'mixed' was expected
- /**
- * (Delegated) Implements hook_civicrm_disable().
- *
- * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_disable
- * @return mixed
- */
- function _api4_civix_civicrm_disable() {
- _api4_civix_civicrm_config();
- if ($upgrader = _api4_civix_upgrader()) {
- if (is_callable(array($upgrader, 'onDisable'))) {
- ERROR: UndefinedClass - api4.civix.php:201:43 - Class or interface CRM_Queue_Queue does not exist
- function _api4_civix_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) {
- ERROR: NullableReturnStatement - api4.civix.php:212:12 - The declared return type 'CRM_Api4_Upgrader' for _api4_civix_upgrader is not nullable, but the function returns 'null'
- return NULL;
- INFO: InvalidDocblock - api4.civix.php:229:1 - Bracket must be preceded by “Closure”, “callable” or a valid @method name in docblock for _api4_civix_find_files
- /**
- * Search directory tree for files which match a glob pattern
- *
- * Note: Dot-directories (like "..", ".git", or ".svn") will be ignored.
- * Note: In Civi 4.3+, delegate to CRM_Utils_File::findFiles()
- *
- * @param $dir string, base dir
- * @param $pattern string, glob pattern, eg "*.txt"
- * @return array(string)
- */
- function _api4_civix_find_files($dir, $pattern) {
- INFO: MissingReturnType - api4.civix.php:229:10 - Method _api4_civix_find_files does not have a return type
- function _api4_civix_find_files($dir, $pattern) {
- INFO: MissingParamType - api4.civix.php:229:33 - Parameter $dir has no provided type
- function _api4_civix_find_files($dir, $pattern) {
- INFO: MissingParamType - api4.civix.php:229:39 - Parameter $pattern has no provided type
- function _api4_civix_find_files($dir, $pattern) {
- ERROR: UndefinedClass - api4.civix.php:231:12 - Class or interface CRM_Utils_File does not exist
- return CRM_Utils_File::findFiles($dir, $pattern);
- INFO: MissingReturnType - api4.civix.php:264:10 - Method _api4_civix_civicrm_managed does not have a return type, expecting void
- function _api4_civix_civicrm_managed(&$entities) {
- INFO: MissingParamType - api4.civix.php:264:39 - Parameter $entities has no provided type
- function _api4_civix_civicrm_managed(&$entities) {
- INFO: UnresolvableInclude - api4.civix.php:267:11 - Cannot resolve the given expression to a file path
- $es = include $file;
- INFO: MissingReturnType - api4.civix.php:289:10 - Method _api4_civix_civicrm_caseTypes does not have a return type, expecting void
- function _api4_civix_civicrm_caseTypes(&$caseTypes) {
- INFO: MissingParamType - api4.civix.php:289:41 - Parameter $caseTypes has no provided type
- function _api4_civix_civicrm_caseTypes(&$caseTypes) {
- ERROR: UndefinedClass - api4.civix.php:296:18 - Class or interface CRM_Case_XMLProcessor does not exist
- if ($name != CRM_Case_XMLProcessor::mungeCaseType($name)) {
- ERROR: UndefinedClass - api4.civix.php:297:85 - Class or interface CRM_Case_XMLProcessor does not exist
- $errorMessage = sprintf("Case-type file name is malformed (%s vs %s)", $name, CRM_Case_XMLProcessor::mungeCaseType($name));
- ERROR: UndefinedClass - api4.civix.php:298:7 - Class or interface CRM_Core_Error does not exist
- CRM_Core_Error::fatal($errorMessage);
- INFO: MissingReturnType - api4.civix.php:318:10 - Method _api4_civix_civicrm_angularModules does not have a return type, expecting void
- function _api4_civix_civicrm_angularModules(&$angularModules) {
- INFO: MissingParamType - api4.civix.php:318:46 - Parameter $angularModules has no provided type
- function _api4_civix_civicrm_angularModules(&$angularModules) {
- INFO: UnresolvableInclude - api4.civix.php:326:15 - Cannot resolve the given expression to a file path
- $module = include $file;
- INFO: InvalidDocblock - api4.civix.php:346:1 - Cannot parse comma without a parent node in docblock for _api4_civix_glob
- /**
- * Glob wrapper which is guaranteed to return an array.
- *
- * The documentation for glob() says, "On some systems it is impossible to
- * distinguish between empty match and an error." Anecdotally, the return
- * result for an empty match is sometimes array() and sometimes FALSE.
- * This wrapper provides consistency.
- *
- * @link http://php.net/glob
- * @param string $pattern
- * @return array, possibly empty
- */
- function _api4_civix_glob($pattern) {
- INFO: MissingReturnType - api4.civix.php:346:10 - Method _api4_civix_glob does not have a return type, expecting array<int, string>
- function _api4_civix_glob($pattern) {
- INFO: MissingReturnType - api4.civix.php:360:10 - Method _api4_civix_insert_navigation_menu does not have a return type
- function _api4_civix_insert_navigation_menu(&$menu, $path, $item) {
- ERROR: UndefinedClass - api4.civix.php:365:25 - Class or interface CRM_Utils_Array does not exist
- 'label' => CRM_Utils_Array::value('name', $item),
- ERROR: TooManyArguments - api4.civix.php:381:18 - Too many arguments for method _api4_civix_insert_navigation_menu - expecting 3 but saw 4
- $found = _api4_civix_insert_navigation_menu($entry['child'], implode('/', $path), $item, $key);
- INFO: MissingReturnType - api4.civix.php:391:10 - Method _api4_civix_navigationMenu does not have a return type, expecting void
- function _api4_civix_navigationMenu(&$nodes) {
- INFO: MissingParamType - api4.civix.php:391:38 - Parameter $nodes has no provided type
- function _api4_civix_navigationMenu(&$nodes) {
- INFO: MissingReturnType - api4.civix.php:401:10 - Method _api4_civix_fixNavigationMenu does not have a return type, expecting void
- function _api4_civix_fixNavigationMenu(&$nodes) {
- INFO: MissingParamType - api4.civix.php:401:41 - Parameter $nodes has no provided type
- function _api4_civix_fixNavigationMenu(&$nodes) {
- INFO: MissingClosureParamType - api4.civix.php:403:41 - Parameter $item has no provided type
- array_walk_recursive($nodes, function($item, $key) use (&$maxNavID) {
- INFO: MissingClosureParamType - api4.civix.php:403:48 - Parameter $key has no provided type
- array_walk_recursive($nodes, function($item, $key) use (&$maxNavID) {
- INFO: MissingReturnType - api4.civix.php:411:10 - Method _api4_civix_fixNavigationMenuItems does not have a return type, expecting void
- function _api4_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentID) {
- INFO: MissingParamType - api4.civix.php:411:46 - Parameter $nodes has no provided type
- function _api4_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentID) {
- INFO: MissingParamType - api4.civix.php:411:55 - Parameter $maxNavID has no provided type
- function _api4_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentID) {
- INFO: MissingParamType - api4.civix.php:411:66 - Parameter $parentID has no provided type
- function _api4_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentID) {
- INFO: MissingReturnType - api4.civix.php:436:10 - Method _api4_civix_civicrm_alterSettingsFolders does not have a return type, expecting void
- function _api4_civix_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) {
- INFO: MissingParamType - api4.civix.php:436:52 - Parameter $metaDataFolders has no provided type
- function _api4_civix_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) {
- INFO: MissingReturnType - api4.civix.php:457:10 - Method _api4_civix_civicrm_entityTypes does not have a return type, expecting void
- function _api4_civix_civicrm_entityTypes(&$entityTypes) {
- INFO: MissingParamType - api4.civix.php:457:43 - Parameter $entityTypes has no provided type
- function _api4_civix_civicrm_entityTypes(&$entityTypes) {
- ERROR: MissingFile - api4.php:4:1 - Cannot find file /home/coolife/git-repos/gsoc/api/api/Exception.php to include
- require_once 'api/Exception.php';
- ERROR: UndefinedClass - api4.php:34:39 - Class or interface CRM_Utils_Rule does not exist
- if ($index && is_string($index) && !CRM_Utils_Rule::integer($index)) {
- ERROR: UndefinedDocblockClass - api4.php:54:11 - Docblock-defined class or interface Symfony\Component\DependencyInjection\ContainerBuilder does not exist
- /**
- * @param ContainerBuilder $container
- */
- function api4_civicrm_container($container) {
- INFO: MissingReturnType - api4.php:56:10 - Method api4_civicrm_container does not have a return type, expecting void
- function api4_civicrm_container($container) {
- ERROR: UndefinedDocblockClass - api4.php:99:11 - Docblock-defined class or interface Symfony\Component\DependencyInjection\ContainerBuilder does not exist
- /**
- * Load all services in a given directory
- *
- * @param string $namespace
- * @param ContainerBuilder $container
- */
- function _api4_load_services($namespace, $tag, $container) {
- INFO: MissingReturnType - api4.php:101:10 - Method _api4_load_services does not have a return type, expecting void
- function _api4_load_services($namespace, $tag, $container) {
- INFO: MissingReturnType - api4.php:118:10 - Method api4_civicrm_coreResourceList does not have a return type, expecting void
- function api4_civicrm_coreResourceList(&$list, $region) {
- INFO: MissingParamType - api4.php:118:41 - Parameter $list has no provided type
- function api4_civicrm_coreResourceList(&$list, $region) {
- INFO: MissingParamType - api4.php:118:48 - Parameter $region has no provided type
- function api4_civicrm_coreResourceList(&$list, $region) {
- ERROR: UndefinedClass - api4.php:120:5 - Class or interface Civi does not exist
- Civi::resources()->addScriptFile('org.civicrm.api4', 'js/api4.js', -9000, $region);
- INFO: MissingReturnType - api4.php:129:10 - Method api4_civicrm_config does not have a return type, expecting void
- function api4_civicrm_config(&$config) {
- INFO: MissingParamType - api4.php:129:31 - Parameter $config has no provided type
- function api4_civicrm_config(&$config) {
- INFO: MissingReturnType - api4.php:138:10 - Method api4_civicrm_xmlMenu does not have a return type, expecting void
- function api4_civicrm_xmlMenu(&$files) {
- INFO: MissingParamType - api4.php:138:32 - Parameter $files has no provided type
- function api4_civicrm_xmlMenu(&$files) {
- INFO: MissingReturnType - api4.php:147:10 - Method api4_civicrm_install does not have a return type, expecting void
- function api4_civicrm_install() {
- INFO: MissingReturnType - api4.php:156:10 - Method api4_civicrm_uninstall does not have a return type, expecting void
- function api4_civicrm_uninstall() {
- INFO: MissingReturnType - api4.php:165:10 - Method api4_civicrm_enable does not have a return type, expecting void
- function api4_civicrm_enable() {
- INFO: MissingReturnType - api4.php:174:10 - Method api4_civicrm_disable does not have a return type, expecting void
- function api4_civicrm_disable() {
- INFO: MissingReturnType - api4.php:183:10 - Method api4_civicrm_upgrade does not have a return type
- function api4_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) {
- ERROR: UndefinedClass - api4.php:183:36 - Class or interface CRM_Queue_Queue does not exist
- function api4_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) {
- INFO: MissingReturnType - api4.php:195:10 - Method api4_civicrm_managed does not have a return type, expecting void
- function api4_civicrm_managed(&$entities) {
- INFO: MissingParamType - api4.php:195:32 - Parameter $entities has no provided type
- function api4_civicrm_managed(&$entities) {
- INFO: MissingReturnType - api4.php:209:10 - Method api4_civicrm_angularModules does not have a return type, expecting void
- function api4_civicrm_angularModules(&$angularModules) {
- INFO: MissingParamType - api4.php:209:39 - Parameter $angularModules has no provided type
- function api4_civicrm_angularModules(&$angularModules) {
- INFO: MissingReturnType - api4.php:218:10 - Method api4_civicrm_alterSettingsFolders does not have a return type, expecting void
- function api4_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) {
- INFO: MissingParamType - api4.php:218:45 - Parameter $metaDataFolders has no provided type
- function api4_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) {
- ERROR: MissingDependency - tests/phpunit/Action/BaseCustomValueTest.php:8:44 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- abstract class BaseCustomValueTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Action/BasicActionsTest.php:11:32 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class BasicActionsTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Action/BasicCustomFieldTest.php:12:36 - Civi\Test\Api4\Action\BaseCustomValueTest depends on class or interface phpunit_framework_testcase that does not exist
- class BasicCustomFieldTest extends BaseCustomValueTest {
- ERROR: MissingDependency - tests/phpunit/Action/ChainTest.php:10:25 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class ChainTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Action/ComplexQueryTest.php:14:32 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class ComplexQueryTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Action/ContactApiKeyTest.php:10:33 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class ContactApiKeyTest extends \Civi\Test\Api4\UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Action/ContactChecksumTest.php:10:35 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class ContactChecksumTest extends \Civi\Test\Api4\UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Action/CreateCustomValueTest.php:13:37 - Civi\Test\Api4\Action\BaseCustomValueTest depends on class or interface phpunit_framework_testcase that does not exist
- class CreateCustomValueTest extends BaseCustomValueTest {
- ERROR: MissingDependency - tests/phpunit/Action/CreateWithOptionGroupTest.php:12:41 - Civi\Test\Api4\Action\BaseCustomValueTest depends on class or interface phpunit_framework_testcase that does not exist
- class CreateWithOptionGroupTest extends BaseCustomValueTest {
- ERROR: MissingDependency - tests/phpunit/Action/CurrentFilterTest.php:12:33 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class CurrentFilterTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Action/CustomValuePerformanceTest.php:13:42 - Civi\Test\Api4\Action\BaseCustomValueTest depends on class or interface phpunit_framework_testcase that does not exist
- class CustomValuePerformanceTest extends BaseCustomValueTest {
- ERROR: MissingDependency - tests/phpunit/Action/CustomValueTest.php:13:31 - Civi\Test\Api4\Action\BaseCustomValueTest depends on class or interface phpunit_framework_testcase that does not exist
- class CustomValueTest extends BaseCustomValueTest {
- ERROR: MissingDependency - tests/phpunit/Action/DateTest.php:12:24 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class DateTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Action/EvaluateConditionTest.php:11:37 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class EvaluateConditionTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Action/ExtendFromIndividualTest.php:12:40 - Civi\Test\Api4\Action\BaseCustomValueTest depends on class or interface phpunit_framework_testcase that does not exist
- class ExtendFromIndividualTest extends BaseCustomValueTest {
- ERROR: MissingDependency - tests/phpunit/Action/FkJoinTest.php:12:26 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class FkJoinTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Action/GetExtraFieldsTest.php:11:34 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class GetExtraFieldsTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Action/GetFromArrayTest.php:11:32 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class GetFromArrayTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Action/IndexTest.php:10:25 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class IndexTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Action/NullValueTest.php:11:29 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class NullValueTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Action/ReplaceTest.php:16:27 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class ReplaceTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Action/UpdateContactTest.php:13:33 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class UpdateContactTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Action/UpdateCustomValueTest.php:13:37 - Civi\Test\Api4\Action\BaseCustomValueTest depends on class or interface phpunit_framework_testcase that does not exist
- class UpdateCustomValueTest extends BaseCustomValueTest {
- ERROR: MissingDependency - tests/phpunit/Entity/ConformanceTest.php:14:31 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class ConformanceTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Entity/ContactJoinTest.php:12:31 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class ContactJoinTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Entity/EntityTest.php:11:26 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class EntityTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Entity/ParticipantTest.php:11:31 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class ParticipantTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Entity/SettingTest.php:11:27 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class SettingTest extends UnitTestCase {
- INFO: MissingReturnType - tests/phpunit/Mock/Api4/MockArrayEntity.php:15:26 - Method Civi\Api4\MockArrayEntity::getFields does not have a return type, expecting Civi\Api4\Generic\BasicGetFieldsAction
- public static function getFields() {
- INFO: MissingClosureParamType - tests/phpunit/Mock/Api4/MockBasicEntity.php:79:102 - Parameter $item has no provided type
- return new Generic\BasicBatchAction('MockBasicEntity', __FUNCTION__, ['id', 'number'], function ($item) {
- INFO: MissingPropertyType - tests/phpunit/Mock/MockEntityDataStorage.php:10:18 - Property Civi\Test\Api4\Mock\MockEntityDataStorage::$data does not have a declared type - consider array
- private static $data = [];
- INFO: MissingPropertyType - tests/phpunit/Mock/MockEntityDataStorage.php:12:18 - Property Civi\Test\Api4\Mock\MockEntityDataStorage::$nextId does not have a declared type - consider int
- private static $nextId = 1;
- INFO: MissingReturnType - tests/phpunit/Mock/MockEntityDataStorage.php:14:26 - Method Civi\Test\Api4\Mock\MockEntityDataStorage::get does not have a return type
- public static function get() {
- INFO: MissingReturnType - tests/phpunit/Mock/MockEntityDataStorage.php:18:26 - Method Civi\Test\Api4\Mock\MockEntityDataStorage::write does not have a return type
- public static function write($record) {
- INFO: MissingParamType - tests/phpunit/Mock/MockEntityDataStorage.php:18:32 - Parameter $record has no provided type
- public static function write($record) {
- INFO: MissingReturnType - tests/phpunit/Mock/MockEntityDataStorage.php:26:26 - Method Civi\Test\Api4\Mock\MockEntityDataStorage::delete does not have a return type
- public static function delete($record) {
- INFO: MissingParamType - tests/phpunit/Mock/MockEntityDataStorage.php:26:33 - Parameter $record has no provided type
- public static function delete($record) {
- ERROR: MissingDependency - tests/phpunit/Query/Api4SelectQueryComplexJoinTest.php:11:46 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class Api4SelectQueryComplexJoinTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Query/Api4SelectQueryTest.php:11:35 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class Api4SelectQueryTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Query/OneToOneJoinTest.php:15:32 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class OneToOneJoinTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Query/OptionValueJoinTest.php:11:35 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class OptionValueJoinTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Query/SelectQueryMultiJoinTest.php:14:40 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class SelectQueryMultiJoinTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Service/Schema/SchemaMapRealTableTest.php:10:38 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class SchemaMapRealTableTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Service/Schema/SchemaMapperTest.php:13:32 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class SchemaMapperTest extends UnitTestCase {
- INFO: MissingParamType - tests/phpunit/Service/TestCreationParameterProvider.php:28:31 - Parameter $entity has no provided type
- public function getRequired($entity) {
- ERROR: UndefinedFunction - tests/phpunit/Service/TestCreationParameterProvider.php:101:19 - Function Civi\Test\Api4\Service\civicrm_api4 does not exist
- $entityList = civicrm_api4($fkEntity, 'get', $params);
- INFO: MissingParamType - tests/phpunit/Service/TestCreationParameterProvider.php:115:35 - Parameter $dataType has no provided type
- private function getRandomValue($dataType) {
- ERROR: InvalidReturnStatement - tests/phpunit/Service/TestCreationParameterProvider.php:118:16 - The type 'true' does not match the declared return type 'int|null|string' for Civi\Test\Api4\Service\TestCreationParameterProvider::getRandomValue
- return TRUE;
- ERROR: UndefinedClass - tests/phpunit/Service/TestCreationParameterProvider.php:124:16 - Class or interface CRM_Utils_String does not exist
- return StringHelper::createRandom(10, implode('', range('a', 'z')));
- ERROR: UndefinedClass - tests/phpunit/Service/TestCreationParameterProvider.php:127:16 - Class or interface CRM_Utils_String does not exist
- return StringHelper::createRandom(100, implode('', range('a', 'z')));
- ERROR: MissingDependency - tests/phpunit/Spec/RequestSpecTest.php:12:31 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class RequestSpecTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Spec/SpecFormatterTest.php:14:33 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class SpecFormatterTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Spec/SpecGathererTest.php:19:32 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class SpecGathererTest extends UnitTestCase {
- ERROR: UndefinedClass - tests/phpunit/UnitTestCase.php:12:28 - Class or interface PHPUnit_Framework_TestCase does not exist
- class UnitTestCase extends \PHPUnit_Framework_TestCase implements HeadlessInterface, TransactionalInterface {
- ERROR: MissingDependency - tests/phpunit/Utils/ArrayInsertionServiceTest.php:11:41 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class ArrayInsertionServiceTest extends UnitTestCase {
- ERROR: MissingDependency - tests/phpunit/Utils/ReflectionUtilsTest.php:12:35 - Civi\Test\Api4\UnitTestCase depends on class or interface phpunit_framework_testcase that does not exist
- class ReflectionUtilsTest extends UnitTestCase {
- ERROR: InvalidScalarArgument - tests/phpunit/bootstrap.php:5:22 - Argument 2 of ini_set expects string, int(0) provided
- ini_set('safe_mode', 0);
- INFO: UnresolvableInclude - tests/phpunit/bootstrap.php:10:11 - Cannot resolve the given expression to a file path
- $loader = require sprintf('%s/vendor/autoload.php', $matches[1]);
- ERROR: InvalidScalarArgument - tests/phpunit/bootstrap.php:51:35 - Argument 2 of json_decode expects bool, int(1) provided
- return json_decode($result, 1);
- ------------------------------
- 289 errors found
- ------------------------------
- 296 other issues found.
- You can hide them with --show-info=false
- ------------------------------
- Checks took 7.49 seconds and used 78.167MB of memory
- Psalm was able to infer types for 84.4945% of the codebase
Add Comment
Please, Sign In to add comment