Skip to content

Commit

Permalink
MERGE: Merge branch '7.1' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
kdambekalns committed Jul 28, 2021
2 parents cccad24 + 5a160b3 commit 2c8af2b
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 31 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: ['7.3', '7.4']
php-versions: ['7.3', '7.4', '8.0']
dependencies: ['highest']
composer-arguments: [''] # to run --ignore-platform-reqs in experimental builds
static-analysis: ['no']
Expand All @@ -27,8 +27,8 @@ jobs:
# experimental: false
# dependencies: 'highest'

# Experimental build for PHP 8
#- php-versions: '8.0'
# Experimental build for PHP nightly
#- php-versions: 'nightly'
# composer-arguments: '--ignore-platform-reqs'
# static-analysis: 'no'
# experimental: true
Expand Down
2 changes: 1 addition & 1 deletion Neos.ContentRepository/Classes/Domain/Model/NodeData.php
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ function ($childNodeData) {
* @param array $dimensions
* @return integer The number of child nodes
*/
public function getNumberOfChildNodes($nodeTypeFilter = null, Workspace $workspace, array $dimensions)
public function getNumberOfChildNodes($nodeTypeFilter, Workspace $workspace, array $dimensions)
{
return $this->nodeDataRepository->countByParentAndNodeType($this->path, $nodeTypeFilter, $workspace, $dimensions);
}
Expand Down
16 changes: 8 additions & 8 deletions Neos.ContentRepository/Tests/Functional/Domain/NodesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1098,9 +1098,9 @@ public function nodesCanBeCopiedBefore()
$childNodes = $rootNode->getChildNodes();
$names = new \stdClass();
$names->names = [];
array_walk($childNodes, function ($value, $key, &$names) {
array_walk($childNodes, function ($value, $key) use (&$names) {
$names->names[] = $value->getName();
}, $names);
});
self::assertSame(['fluss', 'baz', 'flux'], $names->names);
}

Expand All @@ -1119,9 +1119,9 @@ public function nodesCanBeCopiedAfter()
$childNodes = $rootNode->getChildNodes();
$names = new \stdClass();
$names->names = [];
array_walk($childNodes, function ($value, $key, &$names) {
array_walk($childNodes, function ($value, $key) use (&$names) {
$names->names[] = $value->getName();
}, $names);
});
self::assertSame(['baz', 'fluss', 'flux'], $names->names);
}

Expand Down Expand Up @@ -1174,9 +1174,9 @@ public function nodesAreCopiedBeforeRecursively()

$names = new \stdClass();
$names->names = [];
array_walk($copiedChildNodes, function ($value, $key, &$names) {
array_walk($copiedChildNodes, function ($value, $key) use (&$names) {
$names->names[] = $value->getName();
}, $names);
});
self::assertSame(['capacitor', 'second', 'third'], $names->names);
}

Expand All @@ -1197,9 +1197,9 @@ public function nodesAreCopiedAfterRecursively()

$names = new \stdClass();
$names->names = [];
array_walk($copiedChildNodes, function ($value, $key, &$names) {
array_walk($copiedChildNodes, function ($value, $key) use (&$names) {
$names->names[] = $value->getName();
}, $names);
});
self::assertSame(['capacitor', 'second', 'third'], $names->names);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use Neos\ContentRepository\Domain\Model\NodeType;
use Neos\ContentRepository\Domain\Service\NodeService;
use Neos\ContentRepository\Domain\Service\NodeTypeManager;
use Neos\Flow\Utility\Algorithms;

/**
* Testcase for the NodeService
Expand Down Expand Up @@ -196,7 +197,7 @@ public function createChildNodesTryToCreateAllConfiguredChildNodes()
{
$nodeService = $this->createNodeService();

$mockNode = $this->getMockBuilder(Node::class)->disableOriginalConstructor()->getMock();
$mockNode = $this->getMockBuilder(Node::class)->disableOriginalConstructor()->onlyMethods(['getNodeType', 'createNode', 'getIdentifier'])->getMock();

$mockNodeType = $this->mockNodeType('Neos.ContentRepository.Testing:Content');
$firstChildNodeType = $this->mockNodeType('Neos.ContentRepository.Testing:Content');
Expand All @@ -209,6 +210,8 @@ public function createChildNodesTryToCreateAllConfiguredChildNodes()
'second-child-node-name' => $secondChildNodeType
]));

$mockNode->method('getIdentifier')->willReturn(Algorithms::generateUUID());

$mockNode->expects(self::once())
->method('getNodeType')
->will(self::returnValue($mockNodeType));
Expand Down
4 changes: 2 additions & 2 deletions Neos.ContentRepository/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"GPL-3.0-or-later"
],
"require": {
"php": "^7.3",
"php": "^7.3 || ^8.0",
"neos/flow": "*",
"neos/cache": "*",
"neos/eel": "*",
Expand Down Expand Up @@ -126,4 +126,4 @@
"Neos.Flow-20201109224100"
]
}
}
}
2 changes: 1 addition & 1 deletion Neos.Diff/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "BSD-3-Clause",
"description": "This is a comprehensive library for generating differences between two strings or arrays",
"require": {
"php": "^7.3"
"php": "^7.3 || ^8.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion Neos.Fusion/Classes/Core/Cache/ContentCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public function createUncachedSegment($content, $fusionPath, array $contextVaria
* @param string $cacheDiscriminator The evaluated cache discriminator value
* @return string The original content, but with additional markers added
*/
public function createDynamicCachedSegment($content, $fusionPath, array $contextVariables, array $cacheIdentifierValues, array $tags = [], $lifetime = null, $cacheDiscriminator)
public function createDynamicCachedSegment($content, $fusionPath, array $contextVariables, array $cacheIdentifierValues, array $tags, $lifetime, $cacheDiscriminator)
{
$metadata = implode(',', $tags);
if ($lifetime !== null) {
Expand Down
2 changes: 1 addition & 1 deletion Neos.Fusion/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"GPL-3.0-or-later"
],
"require": {
"php": "^7.3",
"php": "^7.3 || ^8.0",
"neos/flow": "*",
"neos/fluid-adaptor": "*",
"neos/cache": "*",
Expand Down
4 changes: 2 additions & 2 deletions Neos.Media.Browser/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"GPL-3.0-or-later"
],
"require": {
"php": "^7.3",
"php": "^7.3 || ^8.0",
"neos/media": "self.version",
"neos/content-repository": "self.version",
"neos/neos": "self.version",
Expand All @@ -15,7 +15,7 @@
"neos/utility-files": "*",
"neos/utility-mediatypes": "*",
"neos/error-messages": "*",
"doctrine/common": "^2.7",
"doctrine/common": "^2.7 || ^3.0",
"doctrine/orm": "^2.6"
},
"autoload": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* source code.
*/

use Doctrine\Common\Persistence\Mapping\ClassMetadata;
use Doctrine\Persistence\Mapping\ClassMetadata;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Query\Filter\SQLFilter as DoctrineSqlFilter;
use Neos\Flow\Annotations as Flow;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* source code.
*/

use Doctrine\Common\Persistence\Mapping\ClassMetadata;
use Doctrine\Persistence\Mapping\ClassMetadata;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Query\Filter\SQLFilter as DoctrineSqlFilter;
use Neos\Flow\Annotations as Flow;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* source code.
*/

use Doctrine\Common\Persistence\Mapping\ClassMetadata;
use Doctrine\Persistence\Mapping\ClassMetadata;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Query\Filter\SQLFilter as DoctrineSqlFilter;
use Neos\Flow\Annotations as Flow;
Expand Down
6 changes: 3 additions & 3 deletions Neos.Media/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
"GPL-3.0-or-later"
],
"require": {
"php": "^7.3",
"php": "^7.3 || ^8.0",
"neos/imagine": "^3.1.0",
"neos/flow": "*",
"neos/cache": "*",
"neos/fluid-adaptor": "*",
"neos/utility-objecthandling": "*",
"neos/utility-arrays": "*",
"imagine/imagine": "*",
"doctrine/common": "^2.7",
"doctrine/common": "^2.7 || ^3.0",
"doctrine/orm": "^2.6",
"doctrine/dbal": "^2.8"
},
Expand Down Expand Up @@ -123,4 +123,4 @@
"Neos.Flow-20201109224100"
]
}
}
}
2 changes: 1 addition & 1 deletion Neos.Neos/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
],
"description": "An open source Content Application Platform based on Flow. A set of core Content Management features is resting within a larger context that allows you to build a perfectly customized experience for your users.",
"require": {
"php": "^7.3",
"php": "^7.3 || ^8.0",
"neos/diff": "~7.1.0",
"neos/flow": "~7.1.0",
"neos/media-browser": "~7.1.0",
Expand Down
2 changes: 1 addition & 1 deletion Neos.NodeTypes.Form/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"GPL-3.0-or-later"
],
"require": {
"php": "^7.3",
"php": "^7.3 || ^8.0",
"neos/neos": "*",
"neos/form": "*",
"neos/nodetypes-basemixins": "*"
Expand Down
2 changes: 1 addition & 1 deletion Neos.SiteKickstarter/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "A simple generator for Neos assets, like sites and plugins.",
"license": ["GPL-3.0-or-later"],
"require": {
"php": "^7.3",
"php": "^7.3 || ^8.0",
"neos/flow": "*",
"neos/utility-files": "*",
"neos/fluid-adaptor": "*",
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"require": {
"neos/flow-development-collection": "7.1.x-dev",
"neos/neos-setup": "^1.0",
"php": "^7.3",
"php": "^7.3 || ^8.0",
"neos/flow": "*",
"neos/cache": "*",
"neos/eel": "*",
Expand All @@ -22,7 +22,7 @@
"neos/utility-unicode": "*",
"neos/utility-mediatypes": "*",
"neos/error-messages": "*",
"doctrine/common": "^2.7",
"doctrine/common": "^2.7 || ^3.0",
"neos/imagine": "^3.1.0",
"imagine/imagine": "*",
"doctrine/dbal": "^2.8",
Expand Down

0 comments on commit 2c8af2b

Please sign in to comment.