Skip to content

Commit 4f548d5

Browse files
committed
Merge branch '5.2-dev' into 6.0-dev
2 parents 9badb82 + e5b633e commit 4f548d5

File tree

616 files changed

+8006
-2361
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

616 files changed

+8006
-2361
lines changed

.drone.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ steps:
135135
environment:
136136
CYPRESS_VERIFY_TIMEOUT: 100000
137137
commands:
138-
- mv cypress.config.dist.js cypress.config.js
138+
- mv cypress.config.dist.mjs cypress.config.mjs
139139
- npx cypress install
140140
- npx cypress verify
141141

@@ -162,6 +162,10 @@ steps:
162162
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
163163
commands:
164164
- bash tests/System/drone-system-run.sh "$(pwd)" cmysqlmax mysqli mysql
165+
when:
166+
event:
167+
exclude:
168+
- pull_request
165169

166170
- name: phpnext-system-mysql
167171
depends_on:
@@ -177,6 +181,10 @@ steps:
177181
- echo "This test is disabled because php next is not stable yet"
178182
- exit 1
179183
- bash tests/System/drone-system-run.sh "$(pwd)" cmysqlnext mysqli mysql
184+
when:
185+
event:
186+
exclude:
187+
- pull_request
180188

181189
- name: phpmin-system-postgres
182190
depends_on:
@@ -189,6 +197,10 @@ steps:
189197
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
190198
commands:
191199
- bash tests/System/drone-system-run.sh "$(pwd)" cpostgres pgsql postgres
200+
when:
201+
event:
202+
exclude:
203+
- pull_request
192204

193205
- name: phpmax-system-postgres
194206
depends_on:
@@ -216,6 +228,10 @@ steps:
216228
- echo "This test is disabled because php next is not stable yet"
217229
- exit 1
218230
- bash tests/System/drone-system-run.sh "$(pwd)" cpostgresnext pgsql postgres
231+
when:
232+
event:
233+
exclude:
234+
- pull_request
219235

220236
- name: artifacts-system-tests
221237
image: joomlaprojects/docker-images:packager

.github/CONTRIBUTING.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
Contributing to the Joomla! CMS™
22
===============
3-
You are welcome to submit a contribution for review and possible inclusion in the Joomla! CMS but, before it will be accepted, we ask that you follow these simple steps:
3+
You are welcome to submit a contribution for review and possible inclusion in the Joomla! CMS but, before it will be accepted, we ask that you follow these simple guidelines:
44

5-
1) Open an issue on our [Issue Tracker](https://issues.joomla.org/) or here on GitHub. If you can, please provide a fix and create a pull request (PR) instead; this will automatically create an issue for you so you do not have to create an issue if you are creating a pull request.
5+
* If you have a feature request, then please open a discussion to define the feature request and discuss possible solutions. Discussions can be converted into issues when the request is defined sufficiently that a developer can start coding the feature. In this process you will get feedback from the maintainers, if the feature is something for the Joomla core distribution or not.
66

7-
2) Follow the [Joomla! Coding Standards](https://developer.joomla.org/coding-standards.html).
7+
* If you have found a bug, open an issue on our [Issue Tracker](https://issues.joomla.org/) or here on GitHub. If you can, please provide a fix and create a pull request (PR) instead; this will automatically create an issue for you so you do not have to create an issue, if you are creating a pull request.
88

9-
3) When filing an issue or opening a PR, please include a clear title and description. The title should be a short summary of an issue and, if possible, should include a reference to an open issue. For example, `Invalid Query in com_admin (Ref #1234)` would be sufficient. All issues and PRs should include a description with as much detail as possible.
10-
If it is a PR, include what the issue is, what the PR is addressing, testing instructions and environmental information (PHP version, database driver and version, and other data you can retrieve from your site's system information view) in case the issue is specific to certain environments. If additional information is needed, please be prepared to provide it as our community members review your submission.
9+
* Follow the [Joomla! Coding Standards](https://manual.joomla.org/docs/get-started/codestyle) for code contributions.
1110

12-
4) Report security issues to the Joomla! Security Strike Team (JSST) at [email protected] or use the [JSST contact form](https://developer.joomla.org/contact-security-team.html). Please do not use the public tracker for security issues.
11+
* When filing an issue or opening a Pull Request(PR), please include a clear title and description. The title should be a short summary of the issue. For example, `Invalid Query in com_admin`. All issues and PRs should include a description with as much detail as possible. If it is a PR, include what the issue is, what the PR is addressing, testing instructions and environmental information (PHP version, database driver and version, and other data you can retrieve from your site's system information view) in case the issue is specific to certain environments. If additional information is needed, please be prepared to provide it as our community members review your submission.
1312

14-
5) If you have a feature request, then please open a discussion to define the feature request and discuss possible solutions. Discussions can be converted into issues when the request is defined sufficiently that a developer can start coding the feature. In this process you will get feedback from the maintainers, if the feature is something for the Joomla core distribution or not.
13+
* Report security issues to the Joomla! Security Strike Team (JSST) at [email protected] or use the [JSST contact form](https://developer.joomla.org/contact-security-team.html). Please do not use the public tracker for security issues. Find [here](https://github.com/joomla/joomla-cms?tab=security-ov-file#readme) more information about the [Security Policies and Procedures](https://github.com/joomla/joomla-cms?tab=security-ov-file#readme).
1514

16-
Please be patient as not all items will be tested immediately (remember, all bug testing for the Joomla! CMS is done by volunteers) and be receptive to feedback about your code.
15+
Please be patient as not all items will be viewed or tested immediately (remember, all bug testing for the Joomla! CMS is done by volunteers) and be receptive to feedback about your code.
1716

1817
#### Branches
1918
While 4.4 is in maintenance mode, ie we are still fixing bugs, PRs should be made to the `4.4-dev` branch. Merged bugfixes will be upmerged into the current 5.x branch. If a bug is only in the 5.x series the PR should be made to the current 5.x branch (currently 5.1).

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ RoboFile.ini
103103
!/tests/System/output/screenshots/.gitkeep
104104
/tests/System/output/videos
105105
!/tests/System/output/videos/.gitkeep
106-
cypress.config.js
106+
cypress.config.mjs
107107

108108
# WebAuthn FIDO metadata cache
109109
/plugins/system/webauthn/fido.jwt

.php-cs-fixer.dist.php

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,33 +61,36 @@
6161

6262
$config = new PhpCsFixer\Config();
6363
$config
64+
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
6465
->setRiskyAllowed(true)
6566
->setHideProgress(false)
6667
->setUsingCache(false)
6768
->setRules(
6869
[
6970
// Basic ruleset is PSR 12
70-
'@PSR12' => true,
71+
'@PSR12' => true,
7172
// Short array syntax
72-
'array_syntax' => ['syntax' => 'short'],
73+
'array_syntax' => ['syntax' => 'short'],
7374
// List of values separated by a comma is contained on a single line should not have a trailing comma like [$foo, $bar,] = ...
74-
'no_trailing_comma_in_singleline' => true,
75+
'no_trailing_comma_in_singleline' => true,
7576
// Arrays on multiline should have a trailing comma
76-
'trailing_comma_in_multiline' => ['elements' => ['arrays']],
77+
'trailing_comma_in_multiline' => ['elements' => ['arrays']],
7778
// Align elements in multiline array and variable declarations on new lines below each other
78-
'binary_operator_spaces' => ['operators' => ['=>' => 'align_single_space_minimal', '=' => 'align']],
79+
'binary_operator_spaces' => ['operators' => ['=>' => 'align_single_space_minimal', '=' => 'align']],
7980
// The "No break" comment in switch statements
80-
'no_break_comment' => ['comment_text' => 'No break'],
81+
'no_break_comment' => ['comment_text' => 'No break'],
8182
// Remove unused imports
82-
'no_unused_imports' => true,
83+
'no_unused_imports' => true,
8384
// Classes from the global namespace should not be imported
84-
'global_namespace_import' => ['import_classes' => false, 'import_constants' => false, 'import_functions' => false],
85+
'global_namespace_import' => ['import_classes' => false, 'import_constants' => false, 'import_functions' => false],
8586
// Alpha order imports
86-
'ordered_imports' => ['imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'alpha'],
87+
'ordered_imports' => ['imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'alpha'],
8788
// There should not be useless else cases
88-
'no_useless_else' => true,
89+
'no_useless_else' => true,
8990
// Native function invocation
90-
'native_function_invocation' => ['include' => ['@compiler_optimized']],
91+
'native_function_invocation' => ['include' => ['@compiler_optimized']],
92+
// Adds null to type declarations when parameter have a default null value
93+
'nullable_type_declaration_for_default_null_value' => true,
9194
]
9295
)
9396
->setFinder($finder);

administrator/components/com_actionlogs/src/Controller/ActionlogsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ActionlogsController extends AdminController
4848
*
4949
* @throws \Exception
5050
*/
51-
public function __construct($config = [], MVCFactoryInterface $factory = null, $app = null, $input = null)
51+
public function __construct($config = [], ?MVCFactoryInterface $factory = null, $app = null, $input = null)
5252
{
5353
parent::__construct($config, $factory, $app, $input);
5454

administrator/components/com_actionlogs/src/Controller/DisplayController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// phpcs:enable PSR1.Files.SideEffects
1818

1919
/**
20-
* Plugins display controller.
20+
* Actionlogs display controller.
2121
*
2222
* @since 4.0.0
2323
*/

administrator/components/com_associations/src/Controller/AssociationController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function edit($key = null, $urlVar = null)
5151
return false;
5252
}
5353

54-
return parent::display();
54+
return $this->display();
5555
}
5656

5757
/**

administrator/components/com_associations/src/Helper/AssociationsHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static function getAssociationList($extensionName, $typeName, $itemId)
7272
}
7373

7474
/**
75-
* Get the the instance of the extension helper class
75+
* Get the instance of the extension helper class
7676
*
7777
* @param string $extensionName The extension name with com_
7878
*

administrator/components/com_associations/src/Model/AssociationsModel.php

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ class AssociationsModel extends ListModel
3434
/**
3535
* Override parent constructor.
3636
*
37-
* @param array $config An optional associative array of configuration settings.
38-
* @param MVCFactoryInterface $factory The factory.
37+
* @param array $config An optional associative array of configuration settings.
38+
* @param ?MVCFactoryInterface $factory The factory.
3939
*
4040
* @see \Joomla\CMS\MVC\Model\BaseDatabaseModel
4141
* @since 3.7
4242
*/
43-
public function __construct($config = [], MVCFactoryInterface $factory = null)
43+
public function __construct($config = [], ?MVCFactoryInterface $factory = null)
4444
{
4545
if (empty($config['filter_fields'])) {
4646
$config['filter_fields'] = [
@@ -101,13 +101,6 @@ protected function populateState($ordering = 'ordering', $direction = 'asc')
101101
$this->setState('itemtype', $this->getUserStateFromRequest($this->context . '.itemtype', 'itemtype', '', 'string'));
102102
$this->setState('language', $this->getUserStateFromRequest($this->context . '.language', 'language', '', 'string'));
103103

104-
$this->setState('filter.search', $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search', '', 'string'));
105-
$this->setState('filter.state', $this->getUserStateFromRequest($this->context . '.filter.state', 'filter_state', '', 'cmd'));
106-
$this->setState('filter.category_id', $this->getUserStateFromRequest($this->context . '.filter.category_id', 'filter_category_id', '', 'cmd'));
107-
$this->setState('filter.menutype', $this->getUserStateFromRequest($this->context . '.filter.menutype', 'filter_menutype', '', 'string'));
108-
$this->setState('filter.access', $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', '', 'string'));
109-
$this->setState('filter.level', $this->getUserStateFromRequest($this->context . '.filter.level', 'filter_level', '', 'cmd'));
110-
111104
// List state information.
112105
parent::populateState($ordering, $direction);
113106

administrator/components/com_associations/src/View/Associations/HtmlView.php

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,56 @@ class HtmlView extends BaseHtmlView
6666
*/
6767
public $itemType = null;
6868

69+
/**
70+
* Main Extension Name
71+
*
72+
* @var string
73+
*
74+
* @since __DEPLOY_VERSION__
75+
*/
76+
public $extensionName;
77+
78+
/**
79+
* Subtype of the extension
80+
*
81+
* @var string
82+
*
83+
* @since __DEPLOY_VERSION__
84+
*/
85+
public $typeName;
86+
87+
/**
88+
* Supported features
89+
*
90+
* @var string[]
91+
*
92+
* @since __DEPLOY_VERSION__
93+
*/
94+
public $typeSupports;
95+
96+
/**
97+
* Fields
98+
*
99+
* @var string[]
100+
*
101+
* @since __DEPLOY_VERSION__
102+
*/
103+
public $typeFields;
104+
105+
/**
106+
* Form object for search filters
107+
*
108+
* @var \Joomla\CMS\Form\Form
109+
*/
110+
public $filterForm;
111+
112+
/**
113+
* The active search filters
114+
*
115+
* @var array
116+
*/
117+
public $activeFilters;
118+
69119
/**
70120
* Display the view
71121
*

0 commit comments

Comments
 (0)