Giter Club home page Giter Club logo

Comments (4)

weirdan avatar weirdan commented on June 26, 2024 1

Add a "php" database column (CHAR(3) DEFAULT NULL) and make sure the PHP version is persisted, if the user selected a specific version other than "Latest".

It will also need to be a part of slug calculation, so that snippets differing in version only have different urls.

from psalm.dev.

muglug avatar muglug commented on June 26, 2024 1

I think saving this info in the DB makes sense.

@orklah I don’t think the PHPStan way is really necessary β€” users rarely ticket issues where the version of PHP is decisive for the bug/feature.

from psalm.dev.

caugner avatar caugner commented on June 26, 2024

I'm thinking of tackling this issue with the following solution:

  1. Add a PHP version select that defaults to "Latest" and make sure it gets passed to the right location.
  2. Add a "php" database column (CHAR(3) DEFAULT NULL) and make sure the PHP version is persisted, if the user selected a specific version other than "Latest".

@muglug @weirdan Does this specification make sense to you, or do you have any remarks?

from psalm.dev.

orklah avatar orklah commented on June 26, 2024

I must say I really like PHPStan implementation: https://phpstan.org/r/13d9f782-9b40-4013-bc34-8177c6f5857b

Every version is checked so when there are differences, the versions appear clearly.

It even help users understand issues on their own when they see they aren't running the correct version

from psalm.dev.

Related Issues (20)

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.