Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add default null to Instance entity nullables field #1006

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

asdfzdfj
Copy link
Contributor

@asdfzdfj asdfzdfj commented Aug 8, 2024

add default values of null to DB nullable properties in Instance entity to prevent access before initialization problems on php side

currently observed the error with the field Instance::$lastSuccessfulReceive
but added null default to all nullable fields just in case

"Handling "App\Message\ActivityPub\Inbox\ActivityMessage" failed:
Typed property App\Entity\Instance::$lastSuccessfulReceive must not be accessed before initialization"

add default values of null to DB nullable properties to prevent
access before initialization problems on php side

currently observed the error with the field
`Instance::$lastSuccessfulReceive` but added null default to all
nullable fields just in case

    "Handling "App\Message\ActivityPub\Inbox\ActivityMessage" failed:
    Typed property App\Entity\Instance::$lastSuccessfulReceive must not
    be accessed before initialization"
@asdfzdfj asdfzdfj force-pushed the fix/instance-entity-uninit-field branch from a68e8e6 to 04e1939 Compare August 9, 2024 16:26
@asdfzdfj asdfzdfj merged commit c46b9c3 into main Aug 9, 2024
7 checks passed
@asdfzdfj asdfzdfj deleted the fix/instance-entity-uninit-field branch August 9, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants