Maurício Meneghini Fauth
9bc8257326
Remove failing workflow for arm32v6
...
- https://github.com/phpmyadmin/phpmyadmin/issues/18121
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-02-20 11:36:41 -03:00
Maurício Meneghini Fauth
8f1eba4255
Merge pull request #18113 from MoonE/remove-static-annotations
...
Remove redundant `@static` annotations
2023-02-19 21:58:51 -03:00
Maurício Meneghini Fauth
5280f044f5
Merge pull request #18125 from kamil-tekiela/UseIdenticalOverEqualWithSameTypeRector
...
Use identical over equal with same type rector
2023-02-19 20:25:11 -03:00
Kamil Tekiela
8f7c28b181
Refactor the condition to get rid of redundant code
...
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2023-02-19 23:19:54 +00:00
Kamil Tekiela
80c4db7253
Use strict check when type is known
...
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2023-02-19 23:19:54 +00:00
Maurício Meneghini Fauth
41e9b64418
Remove exception variable from non-capturing catch
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-02-19 18:55:35 -03:00
Maurício Meneghini Fauth
f5ed30d772
Upgrade to phpmyadmin/coding-standard 4.0
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-02-19 18:37:56 -03:00
Maurício Meneghini Fauth
bec611d817
Update Psalm baseline
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-02-19 17:20:58 -03:00
William Desportes
a2e2ef9501
Merge branch 'QA_5_2'
...
Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-02-19 13:58:34 +01:00
William Desportes
45c4152c4a
Output the version of sphinx-build in create-release.sh
...
Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-02-19 13:48:27 +01:00
William Desportes
3ca687a35c
Fix folder management and building kits in create-release.sh
...
Fixes 67e18b7354 where it was a bit wrong
+ typo fix
Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-02-19 13:46:08 +01:00
William Desportes
de35195d3c
Improve testGetTempDir and testGetUploadTempDir tests
...
Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-02-19 13:30:22 +01:00
William Desportes
67e18b7354
Fix copy action in create-release.sh
...
Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-02-19 13:17:54 +01:00
William Desportes
c914900c05
Fix the snapshot version generation
...
And fix my mistakes
For the same reasons as f503b10dc3
Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-02-19 13:00:17 +01:00
William Desportes
f503b10dc3
Fix #18109 - release script for CI versions
...
Fixes : #18109
The issue was that roave/security-advisories did block any versions before 5.2.1. So I extended 5.2+ci to 5.2.1+ci
Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-02-19 12:48:32 +01:00
William Desportes
d525a722b1
Add autocomplete attribute to password inputs to change password
...
Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-02-19 12:39:58 +01:00
phpMyAdmin bot
7752a1d59f
Update po files
...
[ci skip]
Signed-off-by: phpMyAdmin bot <bot@phpmyadmin.net>
2023-02-19 00:20:36 +00:00
Maurício Meneghini Fauth
98cf06a55d
Mark arm32v6 tests as experimental
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-02-18 13:19:58 -03:00
Maximilian Krög
f6a850f1fb
Remove redundant @static annotations
...
Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2023-02-17 23:03:20 +01:00
Kamil Tekiela
7f898f9fc3
Refactor gis scale data set calculation ( #18100 )
...
* Add better array types through automatic inference
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* Create VO for ScaleData
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* Fix bug with calculation of minimum X/Y
0.0 cannot be used as a sentinel value because it's one of the possible values.
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* Update baselines
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
---------
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2023-02-17 08:24:37 -03:00
Kristijan \"Fremen\" Velkovski
a0f859b1d1
Translated using Weblate (Macedonian)
...
Currently translated at 26.5% (913 of 3442 strings)
[ci skip]
Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/mk/
Signed-off-by: "Kristijan \"Fremen\" Velkovski" <me@krisfremen.com>
2023-02-17 11:24:26 +01:00
Kristijan \"Fremen\" Velkovski
8cf6775938
Translated using Weblate (Macedonian)
...
Currently translated at 26.4% (907 of 3427 strings)
[ci skip]
Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/mk/
Signed-off-by: "Kristijan \"Fremen\" Velkovski" <me@krisfremen.com>
2023-02-17 11:24:23 +01:00
Kristijan \"Fremen\" Velkovski
8862c6d0e0
Translated using Weblate (Macedonian)
...
Currently translated at 26.2% (905 of 3442 strings)
[ci skip]
Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/mk/
Signed-off-by: "Kristijan \"Fremen\" Velkovski" <me@krisfremen.com>
2023-02-17 02:47:45 +01:00
Anders Johansson
08ca877ffb
Translated using Weblate (Swedish)
...
Currently translated at 83.5% (2876 of 3442 strings)
[ci skip]
Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/sv/
Signed-off-by: Anders Johansson <johansson@aljmedia.se>
2023-02-17 02:47:43 +01:00
Bartosz Pazoła
0c40ce18ce
Translated using Weblate (Polish)
...
Currently translated at 95.9% (3302 of 3442 strings)
[ci skip]
Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/pl/
Signed-off-by: Bartosz Pazoła <mmmalfc@gmail.com>
2023-02-17 02:47:42 +01:00
Bartosz Pazoła
75d1e2f3a0
Translated using Weblate (Polish)
...
Currently translated at 45.8% (1570 of 3427 strings)
[ci skip]
Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/pl/
Signed-off-by: Bartosz Pazoła <mmmalfc@gmail.com>
2023-02-17 02:46:04 +01:00
Kristijan \"Fremen\" Velkovski
91520d713c
Translated using Weblate (Macedonian)
...
Currently translated at 26.2% (899 of 3427 strings)
[ci skip]
Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/mk/
Signed-off-by: "Kristijan \"Fremen\" Velkovski" <me@krisfremen.com>
2023-02-17 02:46:03 +01:00
Rytis Arkušauskas
414ab468e6
Translated using Weblate (Lithuanian)
...
Currently translated at 38.1% (1309 of 3427 strings)
[ci skip]
Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/lt/
Signed-off-by: Rytis Arkušauskas <mondolfo@ymail.com>
2023-02-17 02:46:02 +01:00
Maurício Meneghini Fauth
54104869dc
Merge pull request #18102 from kamil-tekiela/create-view-bugs
...
Fixed a bug disable the create view button
2023-02-16 17:31:32 -03:00
Kamil Tekiela
e0ef08d871
Extract functionality into methods for better readability
...
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2023-02-16 12:38:49 +00:00
Kamil Tekiela
87419d3cd2
Fix bug caused by earlier refactoring
...
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2023-02-16 12:13:33 +00:00
Kamil Tekiela
cb2e1932f8
Better array types part 1 ( #18096 )
...
* Plugins getScripts() return array of strings
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* These methods always return an array
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* extractPrivInfo returns an array of strings
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* getInfoPages returns an array of strings
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* returnClassNamesFromMenuButtons returns a string map
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* Use array shape for getDatabasesForSelectOptions
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* Some methods in Table return array of strings
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* getLines returns an array if ints
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* Array shapes in TwoFactor
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* parseEnumSetValues always returns an array of strings
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
---------
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2023-02-15 16:52:00 -03:00
Maurício Meneghini Fauth
d28982e1ab
Merge branch 'QA_5_2'
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-02-15 16:43:41 -03:00
Maurício Meneghini Fauth
b4f15ab6a0
Fix missing default_action parameter when copying rows
...
Related to https://github.com/phpmyadmin/phpmyadmin/pull/17923
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-02-15 16:37:05 -03:00
Maurício Meneghini Fauth
05963de7a8
Fix unused variable after merge
...
Introduced by 0819043d0e .
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-02-15 15:58:20 -03:00
Maurício Meneghini Fauth
4ab4348fee
Merge pull request #18084 from kamil-tekiela/union-types
...
Add union types
2023-02-15 14:47:32 -03:00
Maurício Meneghini Fauth
fc8707a676
Increase Infection minimum thresholds
...
Based on 4e4e2e56fd results.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-02-15 14:18:21 -03:00
Kamil Tekiela
cfe54a501b
Add union types
...
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2023-02-15 15:23:28 +00:00
Maurício Meneghini Fauth
4e4e2e56fd
Refactor NodeFactory::getInstance() to use class strings
...
Improves type inference.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-02-15 11:46:04 -03:00
Maurício Meneghini Fauth
4d756588d3
Merge pull request #18047 from kamil-tekiela/columnMap
...
Move getColumnMapFromSql() to SystemDatabase
2023-02-15 10:54:57 -03:00
Kamil Tekiela
164bf08f4c
Move getColumnMapFromSql() to SystemDatabase
...
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2023-02-15 12:41:47 +00:00
Kamil Tekiela
9187dc8ec2
Export plugins refactoring ( #18071 )
...
This is a simplification of the code to remove confusing ($row[$j] == '0' || $row[$j] != ''). To make the code simpler, I added a @var annotation and replace for with foreach.
I realize this adds Psalm warnings, and they are valid warnings. But they are because of dead code related to $GLOBALS['what']. This just looks like another nonsense of its own that needs a little more work to be removed so I kept it out of this PR. For the time being, let's keep them in Psalm baseline.
* Simplify ExportCsv
* Simplify ExportHtmlword
* Simplify ExportTexytext
* Fix broken tests
https://github.com/phpmyadmin/phpmyadmin/pull/18071
---------
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2023-02-15 09:18:05 -03:00
Kamil Tekiela
2b35303aae
Remove redundant code ( #18063 )
...
PHPStorm has been a little annoying with showing all these code issues. I took some time to analyse most of them and fix whichever were easy to fix. This kind of change should improve future maintenance as developers do not need to wonder what a line of code does. Code that has no impact on functionality should be removed.
* Remove redundant variables
* Invert condition for better clarity
* Remove some of the redundant casts
* Replace switch with an if
* Fix foreach variable
* Remove redundant variable concat
* Remove redundant concats
* Replace for loop with str_repeat
* Remove always true param
* Turn property $position into local var
* Turn Pdf properties into local vars
* Remove unused properties in Pdf
* Change ternary into condition
* Remove redundant assignments
They are immediately overwritten with a different value.
* Redundant array append
* Collapse if statements into assignments
* Use boolean constants instead of variables
* Remove unneeded parameter
* Remove null-coalesce
* Unnecessary assignment
* Remove redundant isset
* Remove readOnly flag for InsertEdit fields
* Remove function_exists and $mode var
* Remove duplicate condition
* Remove redundant elseif
* Remove redundant isset
* Use hasBodyParam()
* Simplify isRoutesCacheFileValid()
Psalm complains but is wrong.
https://github.com/phpmyadmin/phpmyadmin/pull/18063
---------
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2023-02-15 09:11:05 -03:00
Maurício Meneghini Fauth
c3516962c1
Merge pull request #18094 from kamil-tekiela/new-phpstan-checks
...
New phpstan checks
2023-02-14 20:06:19 -03:00
Maurício Meneghini Fauth
e854e79d3b
Merge pull request #18086 from kamil-tekiela/Replace-switch-with-match
...
Replace switch with match
2023-02-14 20:04:17 -03:00
Kamil Tekiela
c9f29281a9
Enable polluteScopeWithLoopInitialAssignments
...
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2023-02-14 21:29:56 +00:00
Kamil Tekiela
affd2b9d7f
Enable checkTooWideReturnTypesInProtectedAndPublicMethods
...
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2023-02-14 21:29:56 +00:00
Kamil Tekiela
51a855a5cc
Enable checkDynamicProperties
...
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2023-02-14 21:17:15 +00:00
Kamil Tekiela
f944f7dcd2
Enable polluteScopeWithAlwaysIterableForeach
...
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2023-02-14 21:13:19 +00:00
Kamil Tekiela
e41cfea7e5
Enable checkUninitializedProperties
...
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2023-02-14 21:09:37 +00:00