Skip to content

fix(psalm): adapt to updated OCP dev-master return types#13083

Open
GretaD wants to merge 1 commit into
mainfrom
fix/psalm-ocp-dev-master-types
Open

fix(psalm): adapt to updated OCP dev-master return types#13083
GretaD wants to merge 1 commit into
mainfrom
fix/psalm-ocp-dev-master-types

Conversation

@GretaD

@GretaD GretaD commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Tests are failing here: #13018
Tried to fix it with claude

  • IRequest::getUploadedFile now declared as array|null; use inline isset() so psalm can narrow the type correctly
  • IUser::getUID now declared as non-nullable string; remove redundant null guard in Provisioning::buildUserEmail

Assisted-by: ClaudeCode:claude-sonnet-4-6

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

- IRequest::getUploadedFile now declared as array|null; use inline
  isset() so psalm can narrow the type correctly
- IUser::getUID now declared as non-nullable string; remove redundant
  null guard in Provisioning::buildUserEmail

Assisted-by: ClaudeCode:claude-sonnet-4-6
Signed-off-by: greta <gretadoci@gmail.com>
@GretaD GretaD self-assigned this Jun 15, 2026
$fileAttachments = $this->request->getUploadedFile('attachments');
$hasAttachments = isset($fileAttachments['name']);
if (!$hasAttachments) {
if (!isset($fileAttachments['name'])) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't get this one. It's the identical code, just inlined?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants