Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
Silverstripe:
name: 'Silverstripe (bundle)'
uses: nswdpc/ci-files/.github/workflows/silverstripe_53_83.yml@v-4
uses: nswdpc/ci-files/.github/workflows/silverstripe_6_83.yml@v-4
PHPStan:
name: 'PHPStan (analyse)'
uses: nswdpc/ci-files/.github/workflows/phpstan.silverstripe_83.yml@v-4
Expand Down
30 changes: 21 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,36 @@
}
],
"require": {
"dnadesign/silverstripe-elemental": "^5",
"gorriecoe/silverstripe-linkfield": "^1.1",
"silverstripe/taxonomy": "^3",
"silverstripe/tagfield" : "^3",
"silverstripe/asset-admin": "^2.4"
"dnadesign/silverstripe-elemental": "^6",
"gorriecoe/silverstripe-linkfield": "dev-ss6",
"silverstripe/taxonomy": "^4",
"silverstripe/tagfield" : "^4",
"silverstripe/asset-admin": "^3"
},
"require-dev": {
"cambis/silverstripe-rector": "^2",
"cambis/silverstan": "^2",
"friendsofphp/php-cs-fixer": "^3",
"nswdpc/ci-files": "dev-v-4",
"phpunit/phpunit": "^9.5",
"phpunit/phpunit": "^11.5",
"phpstan/phpstan": "^2",
"phpstan/phpstan-phpunit": "^2",
"rector/rector": "^2"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/nswdpc/silverstripe-linkfield.git"
},
{
"type": "vcs",
"url": "https://github.com/nswdpc/silverstripe-link.git"
}
],
"scripts": {
"phpstan-analyse": "./vendor/bin/phpstan analyse --ansi --no-progress --no-interaction --configuration vendor/nswdpc/ci-files/phpstan/.phpstan.silverstripe.neon src/ tests/",
"rector-dryrun": "./vendor/bin/rector process --dry-run --ansi --config vendor/nswdpc/ci-files/rector/.rector.silverstripe_53_83.php src/ tests/",
"rector-process": "./vendor/bin/rector process --no-diffs --ansi --config vendor/nswdpc/ci-files/rector/.rector.silverstripe_53_83.php src/ tests/",
"rector-dryrun": "./vendor/bin/rector process --dry-run --ansi --config vendor/nswdpc/ci-files/rector/.rector.silverstripe_6_83.php src/ tests/",
"rector-process": "./vendor/bin/rector process --no-diffs --ansi --config vendor/nswdpc/ci-files/rector/.rector.silverstripe_6_83.php src/ tests/",
"phpcsfixer-fix": "./vendor/bin/php-cs-fixer fix --ansi --no-interaction --config vendor/nswdpc/ci-files/php-cs-fixer/.php-cs-fixer.php src/ tests/"
},
"config": {
Expand All @@ -51,5 +61,7 @@
"silverstripe/recipe-plugin": true,
"phpstan/extension-installer": true
}
}
},
"prefer-stable": true,
"minimum-stability": "dev"
}
12 changes: 6 additions & 6 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage includeUncoveredFiles="true">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd">
<testsuite name="nswdpc/silverstripe-elemental-decoratedcontent">
<directory>tests/</directory>
</testsuite>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
<exclude>
<directory suffix=".php">tests/</directory>
</exclude>
</coverage>
<testsuite name="nswdpc/silverstripe-elemental-decoratedcontent">
<directory>tests/</directory>
</testsuite>
</source>
</phpunit>
2 changes: 1 addition & 1 deletion src/Models/Elements/ElementDecoratedContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class ElementDecoratedContent extends ElementContent
/**
* @inheritdoc
*/
private static string $description = 'A content element with extra fields';
private static string $class_description = 'A content element with extra fields';

/**
* @inheritdoc
Expand Down