Skip to content
Snippets Groups Projects
Commit 537c4c0c authored by catch's avatar catch
Browse files

Issue #3444028 by andypost: [8.4] Fix implicitly nullable type declarations in core/includes

(cherry picked from commit dfcc8e8b)
parent 45cd46b3
No related branches found
No related tags found
21 merge requests!11185Issue #3477324 by andypost, alexpott: Fix usage of str_getcsv() and fgetcsv() for PHP 8.4,!10602Issue #3438769 by vinmayiswamy, antonnavi, michelle, amateescu: Sub workspace does not clear,!10301Issue #3469309 by mstrelan, smustgrave, moshe weitzman: Use one-time login...,!10187Issue #3487488 by dakwamine: ExtensionMimeTypeGuesser::guessMimeType must support file names with "0" (zero) like foo.0.zip,!9944Issue #3483353: Consider making the createCopy config action optionally fail...,!9929Issue #3445469 by pooja_sharma, smustgrave: Add additional test coverage for...,!9787Resolve issue 3479427 - bootstrap barrio issue under Windows,!9742Issue #3463908 by catch, quietone: Split OptionsFieldUiTest into two,!9526Issue #3458177 by mondrake, catch, quietone, godotislate, longwave, larowlan,...,!8738Issue #3424162 by camilledavis, dineshkumarbollu, smustgrave: Claro...,!8704Make greek characters available in ckeditor5,!8597Draft: Issue #3442259 by catch, quietone, dww: Reduce time of Migrate Upgrade tests...,!8533Issue #3446962 by kim.pepper: Remove incorrectly added...,!8517Issue #3443748 by NexusNovaz, smustgrave: Testcase creates false positive,!8325Update file Sort.php,!8095Expose document root on install,!7930Resolve #3427374 "Taxonomytid viewsargumentdefault plugin",!7445Issue #3440169: When using drupalGet(), provide an associative array for $headers,!6502Draft: Resolve #2938524 "Plach testing issue",!38582585169-10.1.x,!3226Issue #2987537: Custom menu link entity type should not declare "bundle" entity key
Pipeline #159726 canceled
...@@ -868,7 +868,7 @@ function _batch_append_set(&$batch, $batch_set) { ...@@ -868,7 +868,7 @@ function _batch_append_set(&$batch, $batch_set) {
* redirect response was returned by the 'finished' callback, the user will * redirect response was returned by the 'finished' callback, the user will
* be redirected to the page that started the batch. Any query arguments will * be redirected to the page that started the batch. Any query arguments will
* be automatically persisted. * be automatically persisted.
* @param \Drupal\Core\Url $url * @param \Drupal\Core\Url|null $url
* (optional) URL of the batch processing page. Should only be used for * (optional) URL of the batch processing page. Should only be used for
* separate scripts like update.php. * separate scripts like update.php.
* @param $redirect_callback * @param $redirect_callback
...@@ -878,7 +878,7 @@ function _batch_append_set(&$batch, $batch_set) { ...@@ -878,7 +878,7 @@ function _batch_append_set(&$batch, $batch_set) {
* @return \Symfony\Component\HttpFoundation\RedirectResponse|null * @return \Symfony\Component\HttpFoundation\RedirectResponse|null
* A redirect response if the batch is progressive. No return value otherwise. * A redirect response if the batch is progressive. No return value otherwise.
*/ */
function batch_process($redirect = NULL, Url $url = NULL, $redirect_callback = NULL) { function batch_process($redirect = NULL, ?Url $url = NULL, $redirect_callback = NULL) {
$batch =& batch_get(); $batch =& batch_get();
if (isset($batch)) { if (isset($batch)) {
......
...@@ -97,13 +97,13 @@ ...@@ -97,13 +97,13 @@
* page request (optimized for the command line) and not send any output * page request (optimized for the command line) and not send any output
* intended for the web browser. See install_state_defaults() for a list of * intended for the web browser. See install_state_defaults() for a list of
* elements that are allowed to appear in this array. * elements that are allowed to appear in this array.
* @param callable $callback * @param callable|null $callback
* (optional) A callback to allow command line processes to update a progress * (optional) A callback to allow command line processes to update a progress
* bar. The callback is passed the $install_state variable. * bar. The callback is passed the $install_state variable.
* *
* @see install_state_defaults() * @see install_state_defaults()
*/ */
function install_drupal($class_loader, $settings = [], callable $callback = NULL) { function install_drupal($class_loader, $settings = [], ?callable $callback = NULL) {
global $install_state; global $install_state;
// Initialize the installation state with the settings that were passed in, // Initialize the installation state with the settings that were passed in,
// as well as a boolean indicating whether or not this is an interactive // as well as a boolean indicating whether or not this is an interactive
...@@ -548,14 +548,14 @@ function install_begin_request($class_loader, &$install_state) { ...@@ -548,14 +548,14 @@ function install_begin_request($class_loader, &$install_state) {
* @param $install_state * @param $install_state
* An array of information about the current installation state. This is * An array of information about the current installation state. This is
* passed along to each task, so it can be modified if necessary. * passed along to each task, so it can be modified if necessary.
* @param callable $callback * @param callable|null $callback
* (optional) A callback to allow command line processes to update a progress * (optional) A callback to allow command line processes to update a progress
* bar. The callback is passed the $install_state variable. * bar. The callback is passed the $install_state variable.
* *
* @return array|null * @return array|null
* HTML output from the last completed task. * HTML output from the last completed task.
*/ */
function install_run_tasks(&$install_state, callable $callback = NULL) { function install_run_tasks(&$install_state, ?callable $callback = NULL) {
do { do {
// Obtain a list of tasks to perform. The list of tasks itself can be // Obtain a list of tasks to perform. The list of tasks itself can be
// dynamic (e.g., some might be defined by the installation profile, // dynamic (e.g., some might be defined by the installation profile,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment