* Extra params to return. eg an extra array of ids. It is not mandatory,
* but can help the computer using the api. Keep in mind the api consumer
* isn't to be trusted. eg. the database password is NOT a good extra data.
- * @param \Exception|NULL $previous
+ * @param \Exception|null $previous
* A previous exception which caused this new exception.
*/
public function __construct($message, $extraParams = [], \Exception $previous = NULL) {
* Extra params to return. eg an extra array of ids. It is not mandatory,
* but can help the computer using the api. Keep in mind the api consumer
* isn't to be trusted. eg. the database password is NOT a good extra data.
- * @param \Exception|NULL $previous
+ * @param \Exception|null $previous
* A previous exception which caused this new exception.
*/
public function __construct($message, $extraParams = [], \Exception $previous = NULL) {
* See docblock in DynamicFKAuthorization::$lookupDelegateSql.
* @param string $lookupCustomFieldSql
* See docblock in DynamicFKAuthorization::$lookupCustomFieldSql.
- * @param array|NULL $allowedDelegates
+ * @param array|null $allowedDelegates
* e.g. "civicrm_mailing","civicrm_activity"; NULL to allow any.
*/
public function __construct($kernel, $entityName, $actions, $lookupDelegateSql, $lookupCustomFieldSql, $allowedDelegates = NULL) {
* If the error is multi-field (e.g. mismatched password-confirmation), then use an array.
* If the error is independent of any field, then use [].
* @param string $name
- * @param string|NULL $message
+ * @param string|null $message
* @return $this
*/
public function addError($recordKey, $field, string $name, string $message = NULL): self {
}
/**
- * @param int|NULL $serialize
+ * @param int|null $serialize
*
* @return $this
*/
/**
* Determine the local path of a cache file.
*
- * @param string|NULL $fileName
+ * @param string|null $fileName
* Ex: 'angular.abcd1234abcd1234.json'.
* @return string
* URL.
/**
* Determine the URL of a cache file.
*
- * @param string|NULL $fileName
+ * @param string|null $fileName
* Ex: 'angular.abcd1234abcd1234.json'.
* @return string
* URL.
* The result data may not meet the preference -- if the setting
* refers to an external domain, then the result will be
* absolute (regardless of preference).
- * @param bool|NULL $ssl
+ * @param bool|null $ssl
* NULL to autodetect. TRUE to force to SSL.
* @return FALSE|string
* The URL for $value (string), or FALSE if the $value is not specified.
*
* @param array $info
* See hook_civicrm_triggerInfo.
- * @param string|NULL $tableFilter
+ * @param string|null $tableFilter
* See hook_civicrm_triggerInfo.
*/
public function alterTriggerInfo(&$info, $tableFilter = NULL) {
*
* @param array $info
* See hook_civicrm_triggerInfo.
- * @param string|NULL $tableFilter
+ * @param string|null $tableFilter
* See hook_civicrm_triggerInfo.
*/
public function alterTriggerInfo(&$info, $tableFilter = NULL) {
/**
* @param CipherSuiteInterface $cipherSuite
* The encryption/decryption callback/handler
- * @param string[]|NULL $names
+ * @param string[]|null $names
* Symbolic names. Ex: 'aes-cbc'
* If NULL, probe $cipherSuite->getNames()
*/
}
/**
- * @param string|NULL $helpPre
+ * @param string|null $helpPre
*/
public function setHelpPre($helpPre) {
$this->helpPre = is_string($helpPre) && strlen($helpPre) ? $helpPre : NULL;
}
/**
- * @param string|NULL $helpPost
+ * @param string|null $helpPost
*/
public function setHelpPost($helpPost) {
$this->helpPost = is_string($helpPost) && strlen($helpPost) ? $helpPost : NULL;
/**
* Get the data source used for testing.
*
- * @param string|NULL $part
+ * @param string|null $part
* One of NULL, 'hostspec', 'port', 'username', 'password', 'database'.
* @return string|array|NULL
* If $part is omitted, return full DSN array.
/**
* Determine whether this check should be used during the current test.
*
- * @param \PHPUnit\Framework\Test|NULL $test
+ * @param \PHPUnit\Framework\Test|null $test
*
* @return bool|string
* FALSE: The check will be completely skipped.
}
/**
- * @param \PHPUnit\Framework\Test|NULL $test
+ * @param \PHPUnit\Framework\Test|null $test
*/
public function setTest($test): void {
$this->test = $test;
* Ex: [`array`, `NULL`, `CRM_Core_DAO`]
* @param mixed $value
* The variable to check
- * @param string|NULL $msg
+ * @param string|null $msg
* @see \CRM_Utils_Type::validatePhpType
*/
public function assertType($types, $value, ?string $msg = NULL) {
/**
* @param $expectCode
- * @param \Psr\Http\Message\ResponseInterface|NULL $response
+ * @param \Psr\Http\Message\ResponseInterface|null $response
* If NULL, then it uses the last response.
*
* @return $this
/**
* @param $expectType
- * @param \Psr\Http\Message\ResponseInterface|NULL $response
+ * @param \Psr\Http\Message\ResponseInterface|null $response
* If NULL, then it uses the last response.
*
* @return $this
}
/**
- * @param \Psr\Http\Message\ResponseInterface|NULL $response
+ * @param \Psr\Http\Message\ResponseInterface|null $response
* @return \Psr\Http\Message\ResponseInterface
*/
protected function resolveResponse($response) {
* Register a new token.
*
* @param array|string $paramsOrField
- * @param NULL|string $label
+ * @param null|string $label
* @return TokenRegisterEvent
*/
public function register($paramsOrField, $label = NULL) {
/**
* Add a row of data.
*
- * @param array|NULL $context
+ * @param array|null $context
* Optionally, initialize the context for this row.
* Ex: ['contact_id' => 123].
* @return TokenRow
*
* @param string $field
* Ex: 'contactId'.
- * @param string|NULL $subfield
+ * @param string|null $subfield
* @return array
* Ex: [12, 34, 56].
*/
/**
* Enable export/import in alternative scopes.
*
- * @param string|array|NULL $scope
+ * @param string|array|null $scope
* Ex: 'tplParams'
* Ex: 'tplParams as foo_bar'
* Ex: 'tplParams as contact_id, TokenProcessor as contactId'