Comments (4)
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.
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.
I'm thinking of tackling this issue with the following solution:
- Add a PHP version select that defaults to "Latest" and make sure it gets passed to the right location.
- 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.
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)
- JS: Cannot read properties of null (reading 'parentNode') HOT 1
- Uninitialized string offset when using Psalter online HOT 2
- pure-callable should be in the category for union types instead of phpdoc tags?
- Backslashes show up for `\<` in html generated from markdown, e.g. `array\<int, string>` HOT 1
- tight return type option unchecks itself HOT 2
- Implement SQL Migrations HOT 5
- Cannot run `composer update` in `php-apache` container
- Uses Psalm's dev artifacts that are not guaranteed to be installed
- Sandbox: add confirmation window on the page unload if there are code in the editor, or save it in the LocalStorage
- Update CodeMirror with latest PHP keyword highlights HOT 1
- Treat assert() as failing HOT 5
- Increased 500 errors HOT 3
- TaintIssues highlighting broken after #72 HOT 1
- Static factory output type incorrectly inferred HOT 4
- "Allow PHPStorm generic annotations" option doesn't exist in psalm? HOT 1
- Update CodeMirror to v6
- Different psalm versions? HOT 1
- Request failed SyntaxError: Unexpected token '<', "<br /> <b>"... is not valid JSON HOT 1
- fonts.css 404 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psalm.dev.