Giter VIP home page Giter VIP logo

yii3-i's People

Watchers

 avatar  avatar

yii3-i's Issues

PHP Fatal Error — Yiisoft\ErrorHandler\Exception\ErrorException Class Yiisoft\Yii\Cycle\Data\Reader\EntityReader contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Yiisoft\Data\Reader\FilterableDataInterface::withFilterHandlers)

What steps will reproduce the problem? Composer update with downgrading of yiisoft/data from ^3.0 to ^1.0

What is the expected result? A clean run

What do you get instead? The above error

Additional info

Q A
Version 1.0.?
PHP version 8.1
Operating system WIndows 10

Psalm Level 1 - Testing - 1 error - Framework related

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

What steps will reproduce the problem? Running PsalmLevel 1

What is the expected result? No errors

What do you get instead? The above error

Additional info

Q A
Version 1.0.?
PHP version 8.1.12
Operating system Windwos 10

Observer Role has already been assigned

What steps will reproduce the problem? Trying to sign up a new guest user

What is the expected result? That the observer role had not been previously assigned

What do you get instead? The above error.

Additional info

Q A
Version 1.0.?
PHP version 8.2
Operating system Windows 10

Pre-yiisoftmailer upgrade - branch: Psalm Level 4 Testing: 273 Static Analysis Errors on Level 4 mostly related to below message.

What steps will reproduce the problem? Refer to below error

What is the expected result? No errors

What do you get instead? Below Type Errors

Additional info

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);

ERROR: MissingTemplateParam - src/User/UserRepository.php:17:13 - App\User\UserRepository has missing template params when extending Cycle\ORM\Select\Repository, expecting 1 (see https://psalm.dev/182) final class UserRepository extends Select\Repository

What steps will reproduce the problem?

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

What is the expected result? No ERROR

What do you get instead? The above error.

Additional info

Q A
Version 1.0.?
PHP version 8.1.12
Operating system Window 10

Yiisoft\Di\NotFoundException No definition or class found or resolvable for "Cycle\ORM\Select" while building "App\Invoice\...Controller" -> "App\Service\WebControllerService" -> "App\Invoice\...\...Service" -> "App\Invoice\...\...Repository" -> "Cycle\ORM\Select".

What steps will reproduce the problem? Generate an entity file using the generator

What is the expected result? A smooth run through

What do you get instead? The above error.

Additional info

Q A
Version 1.0.?
PHP version 8.2.1
Operating system Windows 10

see https://github.com/yiisoft/demo/issues/559

What steps will reproduce the problem? All tests are passing but when installing the downloaded code.

What is the expected result? A clean run.

What do you get instead? The error reported for the above issue.

Additional info

Q A
Version 1.0.?
PHP version 8.1.12
Operating system Windows 10

Cycle\Database\Exception\StatementException SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY `client`.`id` ASC' at line 8

What steps will reproduce the problem? Going into Invoice.... View with no active user accounts.

What is the expected result? View the basic index

What do you get instead? The above message.

Additional info

Q A
Version 1.0.?
PHP version 8.2
Operating system Windows 10

Dependabot Upgrade of yiisoft/form's html requirement from 2.4 to 3.0 causing conflict in composer.json

What steps will reproduce the problem? running composer.json

What is the expected result? composer update

What do you get instead? unable to run

Additional info

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)].

Psalm 6 Warning⚠ : "findUnusedBaselineEntry" will be defaulted to "true" in Psalm 6.

What steps will reproduce the problem? Recent use of Psalm 5.6

What is the expected result? No warnings

What do you get instead? The below warning

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).

Additional info

Q A
Version 1.0.?
PHP version 8.2.1
Operating system Windows 10

Client Logging in sees Administrator's Layout

What steps will reproduce the problem? A client logging in

What is the expected result? For the client only to have access to invoices and quotes

What do you get instead? The client can see the full menu

Additional info

Q A
Version 1.0.?
PHP version 8.1.12
Operating system Windows 10

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.