Skip to content

Write through an ArrayAccess item of an array with its offsetSet() - #14422

Merged
danog merged 3 commits into
vimeo:masterfrom
danog:nested-array-access-write-uses-array
Nov 23, 2026
Merged

danog merged 3 commits into
vimeo:masterfrom
danog:nested-array-access-write-uses-array

Conversation

@danog

@danog danog commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

Psalm reports an array as unused, and doesn't check the value, when an ArrayAccess item of the array is written through an offset.

Before

<?php
/** @param array<string, Bag> $bags */
function pushToItem(array $bags): void { $bags["k"][] = "a"; } // UnusedParam

/** @param array<string, Dogs> $packs */
function addCat(array $packs): void {
    $packs["k"][] = new Cat(); // no issue
}

$a = lists(); // array<string, list<int>>
$a["k"][] = 1; // $a: array{k: non-empty-list<1>, ...<string, list<int>>}

After

function pushToItem(array $bags): void { $bags["k"][] = "a"; } // no issue
    $packs["k"][] = new Cat(); // InvalidArgument
$a["k"][] = 1; // $a: array{k: non-empty-list<int>, ...<string, list<int>>}

…eading the array

An assignment into an item of an array (`$bags['k'][] = $v`) took the item as a new one: an item that is an ArrayAccess
object wasn't written through its offsetSet(), so the value wasn't checked, and the array holding it was reported
unused. The item keeps what the array may hold, and writing through an object reads the array.
@danog danog added the release:fix The PR will be included in 'Fixes' section of the release notes label Nov 21, 2026
@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

✅ Performance: unchanged · Types: increased · Taint: +1 −5

Project Memory (MB) Wall (s) Issues Weighted (types) Taint Dead code
✅ laravel 1 768 73.0 $\color{gray}{\textsf{+1.3\%}}$ 25 691 52 994 682 0
✅ symfony 3 596 262.9 $\color{gray}{\textsf{-0.5\%}}$ 50 610 $\color{red}{\textsf{+6}}$ $\color{gray}{\textsf{-0}}$ 98 398 $\color{red}{\textsf{+12}}$ 1 528 0
✅ doctrine-orm 380 21.0 $\color{gray}{\textsf{+0.2\%}}$ 3 476 6 143 0 0
✅ psl 617 27.5 $\color{gray}{\textsf{+1.3\%}}$ 1 375 5 597 1 0
✅ phpunit 455 20.6 $\color{gray}{\textsf{+1.2\%}}$ 1 731 3 410 18 0
✅ php-parser 226 13.6 $\color{gray}{\textsf{-0.9\%}}$ 17 118 21 193 0 0
✅ tempest 895 37.1 $\color{gray}{\textsf{+1.8\%}}$ 5 040 10 507 252 0
✅ amphp-amp 45 1.5 $\color{gray}{\textsf{-1.3\%}}$ 29 49 0 0
✅ webmozarts-assert 272 4.5 $\color{gray}{\textsf{+0.7\%}}$ 575 2 714 0 0
✅ guzzle-promises 44 1.6 $\color{gray}{\textsf{+1.3\%}}$ 155 434 2 0
✅ monolog 135 5.6 $\color{gray}{\textsf{+2.2\%}}$ 913 2 479 10 0
✅ drupal 4 840 180.1 $\color{gray}{\textsf{+0.2\%}}$ 97 652 $\color{red}{\textsf{+113}}$ $\color{green}{\textsf{-36}}$ 169 347 $\color{red}{\textsf{+145}}$ 579 $\color{orange}{\textsf{+1}}$ $\color{orange}{\textsf{-5}}$ 0
✅ wordpress 2 040 $\color{gray}{\textsf{+0.1\%}}$ 138.7 $\color{gray}{\textsf{+2.2\%}}$ 142 825 $\color{red}{\textsf{+145}}$ $\color{green}{\textsf{-1}}$ 676 798 $\color{red}{\textsf{+170}}$ 461 1
Total 15 314 787.7 $\color{gray}{\textsf{+0.5\%}}$ 347 190 $\color{red}{\textsf{+264}}$ $\color{green}{\textsf{-37}}$ 1 050 063 $\color{red}{\textsf{+327}}$ 3 533 $\color{orange}{\textsf{+1}}$ $\color{orange}{\textsf{-5}}$ 1
How to read this table
  • Memory: Psalm's own peak figure, threads=1. More than +5 % fails, unless the PR changes composer.json.
  • Wall: base and head run on the same runner; ±10 % is noise. Above +10 % warns, never fails. re-run: a reversed second run was taken and the faster kept.
  • Issues: head count over all categories, then $\color{red}{\textsf{+added}}$ $\color{green}{\textsf{-removed}}$ against base.
  • Weighted (types): type issues weighted by error level (levels 1–8 as is, always-errors 10, strictness checks 1). Taint and dead-code issues are not weighed. The projects' own code is pinned and their dependencies resolve identically for base and head, so a change means Psalm reports more, fewer or differently serious issues. A rise is not necessarily a regression.
  • Taint: head count of Tainted* issues, then $\color{orange}{\textsf{+added}}$ $\color{orange}{\textsf{-removed}}$ against base. Both are orange as either direction needs review: more can be new detection or false positives, fewer can be fixed false positives or lost detection.
  • Dead code: head count of unused-code issues, shown only when a run reported some (findUnusedCode). More is red, fewer is green.
  • Total: sum over the projects compared on both sides. Its wall time warns above +5 % (±5 % is noise); the other thresholds apply per project.
  • Colors: $\color{red}{\textsf{red}}$ past a fail or warn threshold (or more issues), $\color{green}{\textsf{green}}$ an improvement past noise (or fewer issues), $\color{orange}{\textsf{orange}}$ needs review, $\color{gray}{\textsf{gray}}$ noise.
  • Performance: regressed if a head run crashed or timed out or a memory or wall delta is red, else improved if one is green, else unchanged. Its icon is the check result: ❌ fail · ⚠️ warn · ✅ pass; the icon next to each project is that project's result, 💥 = not comparable: base crashed or timed out (counts as ⚠️).
  • Types (heading): direction of the total weighted change, increased · decreased · unchanged. Taint and Dead code (heading): added and removed counts, present only when non-zero. Informational, never fails the check.
✅ symfony: issues +6 −0

Memory 3 596 → 3 596 MB (<0.1 %) · Wall 264.3 → 262.9 s (−0.5 %)

Weighted 98 386 → 98 398 (+12, +0.01 %): L1 +3 · L3 +3

Issue type added removed
MixedArrayAssignment 3 0
PossiblyInvalidArrayAssignment 2 0
PossiblyNullArrayAssignment 1 0

Added (6)

  • src/Symfony/Component/HttpKernel/Kernel.php:244 PossiblyInvalidArrayAssignment (error): Cannot access array value on non-array variable $parameters['kernel.bundles'][$name] of type scalar
  • src/Symfony/Component/HttpKernel/Kernel.php:246 PossiblyInvalidArrayAssignment (error): Cannot access array value on non-array variable $parameters['kernel.bundles_metadata'][$name] of type scalar
  • src/Symfony/Component/HttpKernel/Kernel.php:246 PossiblyNullArrayAssignment (error): Cannot access array value on possibly null variable $parameters['kernel.bundles_metadata'][$name] of type UnitEnum|array<array-key, mixed>|null|scalar
  • src/Symfony/Component/Mailer/Bridge/Brevo/Transport/BrevoApiTransport.php:165 MixedArrayAssignment (error): Cannot access array value on mixed variable $headersAndTags['tags']
  • src/Symfony/Component/Mailer/Bridge/Brevo/Transport/BrevoApiTransport.php:170 MixedArrayAssignment (error): Cannot access array value on mixed variable $headersAndTags['headers'][string]
  • src/Symfony/Component/Mailer/Bridge/Brevo/Transport/BrevoApiTransport.php:191 MixedArrayAssignment (error): Cannot access array value on mixed variable $headersAndTags['headers'][mixed]
✅ drupal: issues +113 −36

Memory 4 839 → 4 840 MB (<0.1 %) · Wall 179.8 → 180.1 s (+0.2 %)

Weighted 169 202 → 169 347 (+145, +0.09 %): L1 +55 · L3 +22 · L6 +4

Taint 583 → 579 (+1 −5)

Issue type added removed
InvalidArgument 3 3
InvalidArrayOffset 5 1
InvalidPropertyAssignmentValue 4 4
LessSpecificReturnStatement 2 0
MixedArgument 11 11
MixedArrayAssignment 53 0
MixedAssignment 1 0
MixedStringOffsetAssignment 1 0
MoreSpecificReturnType 2 0
PossiblyInvalidArgument 11 11
PossiblyInvalidArrayAssignment 2 0
PossiblyInvalidArrayOffset 16 0
ReferenceConstraintViolation 1 1
TaintedCallable 1 5

Changed in place (20)

@​@​ 7 places @​@​
  core/lib/Drupal/Core/Datetime/Element/Datelist.php:202
  core/lib/Drupal/Core/Datetime/Element/Datelist.php:208
  core/lib/Drupal/Core/Datetime/Element/Datelist.php:215
  core/lib/Drupal/Core/Datetime/Element/Datelist.php:222
  core/lib/Drupal/Core/Datetime/Element/Datelist.php:228
  core/lib/Drupal/Core/Datetime/Element/Datelist.php:234
  core/lib/Drupal/Core/Datetime/Element/Datelist.php:240
- MixedArgument:           Argument 1 of DateHelper::days cannot be array{'#attributes': array{title: ''|TranslatableMarkup}|mixed, '#empty_option': ''|TranslatableMarkup, '#error_no_message': false, '#options': array<array-key, mixed>, '#required': array{'#attributes': mixed, '#empty_option': ''|TranslatableMarkup, '#error_no_message': false, '#options':…
- PossiblyInvalidArgument: Argument 1 of DateHelper::days expects bool, but possibly different type array{'#attributes': array{title: ''|TranslatableMarkup}|mixed, '#empty_option': ''|TranslatableMarkup, '#error_no_message': false, '#options': array<array-key, mixed>, '#required': array{'#attributes': mixed, '#empty_option': ''|TranslatableMarkup, '#error…
+ MixedArgument:           Argument 1 of DateHelper::days cannot be array{'#attributes': array{'#attributes': mixed, '#empty_option': ''|TranslatableMarkup, '#error_no_message': false, '#options': array<array-key, mixed>, '#required': mixed, '#title': ''|TranslatableMarkup, '#type': 'select'|'textfield', '#value': int|mixed|string, title: ''|TranslatableM…
+ PossiblyInvalidArgument: Argument 1 of DateHelper::days expects bool, but possibly different type array{'#attributes': array{'#attributes': mixed, '#empty_option': ''|TranslatableMarkup, '#error_no_message': false, '#options': array<array-key, mixed>, '#required': mixed, '#title': ''|TranslatableMarkup, '#type': 'select'|'textfield', '#value': int|mixed…

@​@​ core/lib/Drupal/Core/Datetime/Element/Datelist.php:214 @​@​
- MixedArgument:           Argument 1 of Datelist::datetimeRangeYears cannot be array{'#attributes': array{title: ''|TranslatableMarkup}|mixed, '#empty_option': ''|TranslatableMarkup, '#error_no_message': false, '#options': array<array-key, mixed>, '#required': array{'#attributes': mixed, '#empty_option': ''|TranslatableMarkup, '#error_no_message': false, '#options':…
- PossiblyInvalidArgument: Argument 1 of Datelist::datetimeRangeYears expects string, but possibly different type array{'#attributes': array{title: ''|TranslatableMarkup}|mixed, '#empty_option': ''|TranslatableMarkup, '#error_no_message': false, '#options': array<array-key, mixed>, '#required': array{'#attributes': mixed, '#empty_option': ''|TranslatableMarkup, '#err…
+ MixedArgument:           Argument 1 of Datelist::datetimeRangeYears cannot be array{'#attributes': array{'#attributes': mixed, '#empty_option': ''|TranslatableMarkup, '#error_no_message': false, '#options': array<array-key, mixed>, '#required': mixed, '#title': ''|TranslatableMarkup, '#type': 'select'|'textfield', '#value': int|mixed|string, title: ''|TranslatableM…
+ PossiblyInvalidArgument: Argument 1 of Datelist::datetimeRangeYears expects string, but possibly different type array{'#attributes': array{'#attributes': mixed, '#empty_option': ''|TranslatableMarkup, '#error_no_message': false, '#options': array<array-key, mixed>, '#required': mixed, '#title': ''|TranslatableMarkup, '#type': 'select'|'textfield', '#value': int|mix…

@​@​ core/lib/Drupal/Core/Datetime/Element/Datelist.php:221 @​@​
- MixedArgument:           Argument 2 of in_array cannot be array{'#attributes': array{title: ''|TranslatableMarkup}|mixed, '#empty_option': ''|TranslatableMarkup, '#error_no_message': false, '#options': array<array-key, mixed>, '#required': array{'#attributes': mixed, '#empty_option': ''|TranslatableMarkup, '#error_no_message': false, '#options':…
- PossiblyInvalidArgument: Argument 2 of in_array expects array<array-key, mixed>, but possibly different type array{'#attributes': array{title: ''|TranslatableMarkup}|mixed, '#empty_option': ''|TranslatableMarkup, '#error_no_message': false, '#options': array<array-key, mixed>, '#required': array{'#attributes': mixed, '#empty_option': ''|Translat…
+ MixedArgument:           Argument 2 of in_array cannot be array{'#attributes': array{'#attributes': mixed, '#empty_option': ''|TranslatableMarkup, '#error_no_message': false, '#options': array<array-key, mixed>, '#required': mixed, '#title': ''|TranslatableMarkup, '#type': 'select'|'textfield', '#value': int|mixed|string, title: ''|TranslatableM…
+ PossiblyInvalidArgument: Argument 2 of in_array expects array<array-key, mixed>, but possibly different type array{'#attributes': array{'#attributes': mixed, '#empty_option': ''|TranslatableMarkup, '#error_no_message': false, '#options': array<array-key, mixed>, '#required': mixed, '#title': ''|TranslatableMarkup, '#type': 'select'|'textfield', …

@​@​ 2 places @​@​
  core/lib/Drupal/Core/Datetime/Element/Datelist.php:228
  core/lib/Drupal/Core/Datetime/Element/Datelist.php:234
- MixedArgument:           Argument 3 of DateHelper::minutes cannot be array{'#attributes': array{title: ''|TranslatableMarkup}|mixed, '#empty_option': ''|TranslatableMarkup, '#error_no_message': false, '#options': array<array-key, mixed>, '#required': array{'#attributes': mixed, '#empty_option': ''|TranslatableMarkup, '#error_no_message': false, '#options':…
- PossiblyInvalidArgument: Argument 3 of DateHelper::minutes expects int, but possibly different type array{'#attributes': array{title: ''|TranslatableMarkup}|mixed, '#empty_option': ''|TranslatableMarkup, '#error_no_message': false, '#options': array<array-key, mixed>, '#required': array{'#attributes': mixed, '#empty_option': ''|TranslatableMarkup, '#error_…
+ MixedArgument:           Argument 3 of DateHelper::minutes cannot be array{'#attributes': array{'#attributes': mixed, '#empty_option': ''|TranslatableMarkup, '#error_no_message': false, '#options': array<array-key, mixed>, '#required': mixed, '#title': ''|TranslatableMarkup, '#type': 'select'|'textfield', '#value': int|mixed|string, title: ''|TranslatableM…
+ PossiblyInvalidArgument: Argument 3 of DateHelper::minutes expects int, but possibly different type array{'#attributes': array{'#attributes': mixed, '#empty_option': ''|TranslatableMarkup, '#error_no_message': false, '#options': array<array-key, mixed>, '#required': mixed, '#title': ''|TranslatableMarkup, '#type': 'select'|'textfield', '#value': int|mixed|…

@​@​ core/lib/Drupal/Core/Extension/module.api.php:540 ReferenceConstraintViolation @​@​
- …function: 'my_profile_install_configure_form'}, ...<array-key, string>} type found. Use…
+ …function: 'my_profile_install_configure_form'}|string, ...<array-key, string>} type found. Use…

@​@​ core/modules/block/src/BlockListBuilder.php:327 InvalidArrayOffset @​@​
- …using offset value of 'region', expecting -5|-4|-3|-2|-1|0|1|2|3|4
+ …using offset value of 'region', expecting '#attributes'|'drupalSettings'|'id'|'info'|'message'|'operations'|'region-theme'|'title'|'type'|'weight'|int

@​@​ core/modules/toolbar/toolbar.module:63 @​@​
- InvalidPropertyAssignmentValue: $element->options with declared type 'array<array-key, string>' cannot be assigned type 'array{attributes: array{id: non-falsy-string}, ...<array-key, string>}'
+ InvalidArrayOffset:             Cannot access value on variable $element->options['attributes']['id'] using offset value of 'id', expecting int
+ InvalidPropertyAssignmentValue: $element->options with declared type 'array<array-key, string>' cannot be assigned type 'array{attributes: array{id: non-falsy-string}|string, ...<array-key, string>}'

@​@​ core/modules/toolbar/toolbar.module:64 @​@​
- InvalidPropertyAssignmentValue: $element->options with declared type 'array<array-key, string>' cannot be assigned type 'array{attributes: array{class: non-empty-list<'toolbar-icon'>, id: non-falsy-string}, ...<array-key, string>}'
+ InvalidArrayOffset:             Cannot access value on variable $element->options['attributes']['class'] using offset value of 'class', expecting int
+ InvalidPropertyAssignmentValue: $element->options with declared type 'array<array-key, string>' cannot be assigned type 'array{attributes: array{class: list<'toolbar-icon'>|mixed, id: non-falsy-string}|string, ...<array-key, string>}'
+ MixedArrayAssignment:           Cannot access array value on mixed variable $element->options['attributes']['class']

@​@​ core/modules/toolbar/toolbar.module:65 @​@​
- InvalidPropertyAssignmentValue: $element->options with declared type 'array<array-key, string>' cannot be assigned type 'array{attributes: array{class: non-empty-list<non-empty-lowercase-string>, id: non-falsy-string}, ...<array-key, string>}'
+ InvalidPropertyAssignmentValue: $element->options with declared type 'array<array-key, string>' cannot be assigned type 'array{attributes: array{class: mixed|non-empty-list<non-empty-lowercase-string>, id: non-falsy-string}|string, ...<array-key, string>}'
+ MixedArrayAssignment:           Cannot access array value on mixed variable $element->options['attributes']['class']
+ PossiblyInvalidArrayOffset:     Cannot access value on variable $element->options['attributes']['class'] using offset value of 'class', expecting int

@​@​ core/modules/toolbar/toolbar.module:67 @​@​
- InvalidPropertyAssignmentValue: $element->options with declared type 'array<array-key, string>' cannot be assigned type 'array{attributes: array{class: non-empty-list<non-empty-lowercase-string>, id: non-falsy-string, title: string}, ...<array-key, string>}'
+ InvalidPropertyAssignmentValue: $element->options with declared type 'array<array-key, string>' cannot be assigned type 'array{attributes: array{class: mixed|non-empty-list<non-empty-lowercase-string>, id: non-falsy-string, title: string}|string, ...<array-key, string>}'
+ PossiblyInvalidArrayOffset:     Cannot access value on variable $element->options['attributes']['title'] using offset value of 'title', expecting int

… and 3 more

Added (76)

  • core/lib/Drupal/Core/Datetime/Element/Datelist.php:256 MixedArrayAssignment (error): Cannot access array value on mixed variable $element['#attributes']['title']
  • core/lib/Drupal/Core/Entity/Controller/EntityViewController.php:145 MixedArrayAssignment (error): Cannot access array value on mixed variable $page['#attached']['html_head_link']
  • core/lib/Drupal/Core/Entity/Controller/EntityViewController.php:145 PossiblyInvalidArrayOffset (error): Cannot access value on variable $page['#attached']['html_head_link'] using offset value of 'html_head_link', expecting int
  • core/lib/Drupal/Core/Entity/Controller/EntityViewController.php:153 MixedArrayAssignment (error): Cannot access array value on mixed variable $page['#attached']['html_head_link']
  • core/lib/Drupal/Core/Entity/Controller/EntityViewController.php:153 PossiblyInvalidArrayOffset (error): Cannot access value on variable $page['#attached']['html_head_link'] using offset value of 'html_head_link', expecting int
  • core/lib/Drupal/Core/Entity/DraggableListBuilderTrait.php:173 MixedArrayAssignment (error): Cannot access array value on mixed variable $form['actions']['#type']
  • core/lib/Drupal/Core/Entity/DraggableListBuilderTrait.php:174 MixedArrayAssignment (error): Cannot access array value on mixed variable $form['actions']['submit']
  • core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php:2419 MixedArrayAssignment (error): Cannot access array value on mixed variable $revision_schema['fields']['revision_id']['not null']
  • core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php:2420 MixedArrayAssignment (error): Cannot access array value on mixed variable $revision_schema['fields']['revision_id']['description']
  • core/lib/Drupal/Core/Extension/module.api.php:543 InvalidArrayOffset (error): Cannot access value on variable $tasks['install_configure_form']['function'] using offset value of 'function', expecting int
  • … and 66 more

Removed (5)

  • core/lib/Drupal/Core/Config/ConfigImporter.php:573 TaintedCallable (error): Detected tainted text
  • core/lib/Drupal/Core/ImageToolkit/ImageToolkitManager.php:105 TaintedCallable (error): Detected tainted text
  • core/lib/Drupal/Core/Updater/Updater.php:108 TaintedCallable (error): Detected tainted text
  • core/lib/Drupal/Core/Updater/Updater.php:89 TaintedCallable (error): Detected tainted text
  • core/modules/migrate_drupal/src/FieldDiscovery.php:148 TaintedCallable (error): Detected tainted text
✅ wordpress: issues +145 −1

Memory 2 038 → 2 040 MB (+0.1 %) · Wall 135.7 → 138.7 s (+2.2 %)

Weighted 676 628 → 676 798 (+170, +0.03 %): L1 +131 · L3 +13

Issue type added removed
MixedArgument 1 0
MixedArrayAccess 2 0
MixedArrayAssignment 128 0
PossiblyFalseArgument 0 1
PossiblyInvalidArrayAccess 1 0
PossiblyInvalidArrayAssignment 13 0

Changed in place (1)

@​@​ src/wp-includes/ID3/module.audio-video.riff.php:1898 @​@​
- PossiblyFalseArgument: Argument 1 of trim cannot be false, possibly string value expected
+ MixedArgument:         Argument 1 of trim cannot be mixed, expecting string
+ MixedArrayAccess:      Cannot access array value on mixed variable $RIFFchunk[$chunkname][$thisindex]['parsed']

Added (143)

  • src/wp-admin/includes/media.php:1481 MixedArrayAssignment (error): Cannot access array value on mixed variable $form_fields['post_title']['required']
  • src/wp-admin/includes/post.php:654 MixedArrayAssignment (error): Cannot access array value on mixed variable $post_data['tax_input'][$tax_name]
  • src/wp-admin/menu.php:209 MixedArrayAssignment (error): Cannot access array value on mixed variable $submenu['themes.php'][5]
  • src/wp-admin/menu.php:212 MixedArrayAssignment (error): Cannot access array value on mixed variable $submenu['themes.php'][6]
  • src/wp-admin/menu.php:217 MixedArrayAssignment (error): Cannot access array value on mixed variable $submenu['themes.php'][6]
  • src/wp-admin/menu.php:219 MixedArrayAssignment (error): Cannot access array value on mixed variable $submenu['themes.php'][6]
  • src/wp-admin/menu.php:228 MixedArrayAssignment (error): Cannot access array value on mixed variable $submenu['themes.php'][7]
  • src/wp-admin/menu.php:232 MixedArrayAssignment (error): Cannot access array value on mixed variable $submenu['themes.php'][10]
  • src/wp-admin/menu.php:237 MixedArrayAssignment (error): Cannot access array value on mixed variable $submenu['themes.php'][15]
  • src/wp-admin/menu.php:242 MixedArrayAssignment (error): Cannot access array value on mixed variable $submenu['themes.php'][20]
  • … and 133 more

head 4e7446a · base 810b501 (merge-base) · workflow run

# Conflicts:
#	tests/ArrayAccessTest.php
#	tests/ArrayAssignmentTest.php
@danog
danog merged commit 7069b78 into vimeo:master Nov 23, 2026
63 of 64 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:fix The PR will be included in 'Fixes' section of the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant