rossaddison / yii3-i Goto Github PK
View Code? Open in Web Editor NEWyii3-i
License: MIT License
yii3-i
License: MIT License
Q | A |
---|---|
Version | 1.0.? |
PHP version | 8.1 |
Operating system | WIndows 10 |
Error:
ERROR: ImplementedReturnTypeMismatch - vendor/yiisoft/form/src/FormModel.php:218:33 - The inherited return type 'iterable<int|string, Yiisoft\Validator\RuleInterface|callable|iterable<int, Yiisoft\Validator\RuleInterface|callable>>' for Yiisoft\Validator\RulesProviderInterface::getRules is different to the implemented return type for Yiisoft\Form\FormModel::getrules 'array<array-key, mixed>' (see https://psalm.dev/123)
public function getRules(): array
Q | A |
---|---|
Version | 1.0.? |
PHP version | 8.1.12 |
Operating system | Windwos 10 |
Q | A |
---|---|
Version | 1.0.? |
PHP version | 8.2 |
Operating system | Windows 10 |
Q | A |
---|---|
Version | 1.0.? |
PHP version | 8.2 |
Operating system | Windows 10 |
in the construct
Q | A |
---|---|
Version | 1.0.? |
PHP version | 8.2.1 |
Operating system | Windows 10 |
Q | A |
---|---|
Version | 1.0.? |
PHP version | |
Operating system |
ERROR: InvalidReturnType - src/User/UserRepository.php:57:22 - The declared return type 'Yiisoft\Data\Reader\DataReaderInterface<int, App\User\User>' for App\User\UserRepository::findAllPreloaded is incorrect, got 'Yiisoft\Yii\Cycle\Data\Reader\EntityReader' (see https://psalm.dev/011)
* @psalm-return DataReaderInterface<int, User>
ERROR: InvalidReturnStatement - src/User/UserRepository.php:62:16 - The inferred type 'Yiisoft\Yii\Cycle\Data\Reader\EntityReader' does not match the declared return type 'Yiisoft\Data\Reader\DataReaderInterface<int, App\User\User>' for App\User\UserRepository::findAllPreloaded (see https://psalm.dev/128)
return $this->prepareDataReader($query);
Q | A |
---|---|
Version | 1.0.? |
PHP version | |
Operating system |
Command Prompt Psalm Testing Level 6: (4.3 upgraded to 5.4)
C:\wamp64\www\yii3-i>php ./vendor/bin/psalm --show-info=false
Original code without Psalm (.../App/User/UserRepository)
final class UserRepository extends Select\Repository
Original code of Parent with Psalm (...vendor/cycle/orm/Select/Repository.php
**
* Repository provides ability to load entities and construct queries.
*
* @template TEntity of object
* @implements RepositoryInterface<TEntity>
*/
class Repository implements RepositoryInterface
Q | A |
---|---|
Version | 1.0.? |
PHP version | 8.1.12 |
Operating system | Window 10 |
Q | A |
---|---|
Version | 1.0.? |
PHP version | 8.2.1 |
Operating system | Windows 10 |
Q | A |
---|---|
Version | 1.0.? |
PHP version | 8.2.1 |
Operating system | Windows 10 |
Q | A |
---|---|
Version | 1.0.? |
PHP version | 8.1.12 |
Operating system | Windows 10 |
Q | A |
---|---|
Version | 1.0.? |
PHP version | |
Operating system |
Q | A |
---|---|
Version | 1.0.? |
PHP version | 8.2 |
Operating system | Windows 10 |
Q | A |
---|---|
Version | 1.0.? |
PHP version | 8.1.12 |
Operating system |
Problem 1
- yiisoft/form dev-master requires yiisoft/html ^3.0 -> found yiisoft/html[3.0.0] but it conflicts with your root composer.json require (^2.4).
- yiisoft/form 1.0.x-dev is an alias of yiisoft/form dev-master and thus requires it to be installed too.
- Root composer.json requires yiisoft/form ^1.0@dev -> satisfiable by yiisoft/form[1.0.x-dev (alias of dev-master)].
Warning: "findUnusedBaselineEntry" will be defaulted to "true" in Psalm 6. You should explicitly enable or disable this setting.
Warning: "findUnusedCode" will be defaulted to "true" in Psalm 6. You should explicitly enable or disable this setting.
Target PHP version: 8.1 (inferred from composer.json) Enabled extensions: (unsupported extensions: pdo_sqlite).
Q | A |
---|---|
Version | 1.0.? |
PHP version | 8.2.1 |
Operating system | Windows 10 |
Q | A |
---|---|
Version | 1.0.? |
PHP version | 8.1.12 |
Operating system | Windows 10 |
Q | A |
---|---|
Version | 1.0.? |
PHP version | php 8.1.12 |
Operating system | Windows 10 |
Q | A |
---|---|
Version | 1.0.? |
PHP version | 8.1.12 |
Operating system | Windows 10 |
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.