getsentry / getsentry/sentry-php

[5.x] Consider removing `strict_types`

Open
#1,899 1 comment 0 reactions 1 assignee Claimed by @Litarnus View on GitHub
5.0 PHP Task
Dominant language
PHP
Stars
1.9k
Forks
474
Avg merge
2d 3h
Merged PRs (30d)
8

Description

We might be able to create a more robust SDK by removing `declare(strict_types=1)` from the code base. While we would need to be more cautions about type coercion, we would throw no more `TypeErrors`.
Let's investigate and document it.
Make sure to add the commit to https://github.com/getsentry/sentry-php/blob/master/.git-blame-ignore-revs after merging.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.