phpstan / phpstan-dibi Goto Github PK
View Code? Open in Web Editor NEWDibi class reflection extension for PHPStan
Dibi class reflection extension for PHPStan
How to properly solve those?
I know it will allways be ?int, but since fetchSingle is marked as returning mixed I can't solve this. I wouldn't want to just skip those checks....
public function getIdByKey(string $key): ?int
{
return $this->db->select('id')->from($this->table)->where('%n = %s', 'key', $key)->fetchSingle();
}
ofcours, here is integer in some other query will be something else...
only thing I think off as correct would maybe be:
public function getIdByKey(string $key): ?int
{
/** @var int|null $id */
$id = $this->db->select('id')->from($this->table)->where('%n = %s', 'key', $key)->fetchSingle();
}
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
dibi/dibi
, phpunit/phpunit
)composer.json
php ^7.2 || ^8.0
phpstan/phpstan ^1.5.0
dibi/dibi ~4.0
php-parallel-lint/php-parallel-lint ^1.2
phpstan/phpstan-phpunit ^1.0
phpstan/phpstan-strict-rules ^1.0
phpunit/phpunit ^9.5
.github/workflows/build.yml
actions/checkout v4
shivammathur/setup-php v2
actions/checkout v4
actions/checkout v4
shivammathur/setup-php v2
actions/checkout v4
shivammathur/setup-php v2
actions/checkout v4
shivammathur/setup-php v2
.github/workflows/create-tag.yml
actions/checkout v4
WyriHaximus/github-action-get-previous-tag v1
WyriHaximus/github-action-next-semvers v1
rickstaa/action-create-tag v1
rickstaa/action-create-tag v1
.github/workflows/lock-closed-issues.yml
dessant/lock-threads v5
.github/workflows/release-toot.yml
cbrgm/mastodon-github-action v2
.github/workflows/release-tweet.yml
Eomm/why-don-t-you-tweet v1
.github/workflows/release.yml
actions/checkout v4
metcalfc/changelog-generator v4.3.1
actions/create-release v1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.