Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
65fb50f9
Unverified
Commit
65fb50f9
authored
4 years ago
by
Christoph Wurst
Browse files
Options
Downloads
Patches
Plain Diff
Add psalm types for the migration schema closure
Signed-off-by:
Christoph Wurst
<
christoph@winzerhof-wurst.at
>
parent
20e8b266
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/public/Migration/IMigrationStep.php
+6
-0
6 additions, 0 deletions
lib/public/Migration/IMigrationStep.php
lib/public/Migration/SimpleMigrationStep.php
+9
-12
9 additions, 12 deletions
lib/public/Migration/SimpleMigrationStep.php
with
15 additions
and
12 deletions
lib/public/Migration/IMigrationStep.php
+
6
−
0
View file @
65fb50f9
<?php
<?php
declare
(
strict_types
=
1
);
/**
/**
* @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com>
* @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com>
*
*
...
@@ -49,6 +52,7 @@ interface IMigrationStep {
...
@@ -49,6 +52,7 @@ interface IMigrationStep {
/**
/**
* @param IOutput $output
* @param IOutput $output
* @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
* @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
* @psalm-param Closure():ISchemaWrapper $schemaClosure
* @param array $options
* @param array $options
* @since 13.0.0
* @since 13.0.0
*/
*/
...
@@ -57,6 +61,7 @@ interface IMigrationStep {
...
@@ -57,6 +61,7 @@ interface IMigrationStep {
/**
/**
* @param IOutput $output
* @param IOutput $output
* @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
* @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
* @psalm-param Closure():ISchemaWrapper $schemaClosure
* @param array $options
* @param array $options
* @return null|ISchemaWrapper
* @return null|ISchemaWrapper
* @since 13.0.0
* @since 13.0.0
...
@@ -66,6 +71,7 @@ interface IMigrationStep {
...
@@ -66,6 +71,7 @@ interface IMigrationStep {
/**
/**
* @param IOutput $output
* @param IOutput $output
* @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
* @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
* @psalm-param Closure():ISchemaWrapper $schemaClosure
* @param array $options
* @param array $options
* @since 13.0.0
* @since 13.0.0
*/
*/
...
...
This diff is collapsed.
Click to expand it.
lib/public/Migration/SimpleMigrationStep.php
+
9
−
12
View file @
65fb50f9
<?php
<?php
declare
(
strict_types
=
1
);
/**
/**
* @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com>
* @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com>
*
*
...
@@ -25,8 +28,6 @@
...
@@ -25,8 +28,6 @@
namespace
OCP\Migration
;
namespace
OCP\Migration
;
use
OCP\DB\ISchemaWrapper
;
/**
/**
* @since 13.0.0
* @since 13.0.0
*/
*/
...
@@ -52,19 +53,16 @@ abstract class SimpleMigrationStep implements IMigrationStep {
...
@@ -52,19 +53,16 @@ abstract class SimpleMigrationStep implements IMigrationStep {
}
}
/**
/**
* @param IOutput $output
* {@inheritDoc}
* @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
*
* @param array $options
* @since 13.0.0
* @since 13.0.0
*/
*/
public
function
preSchemaChange
(
IOutput
$output
,
\Closure
$schemaClosure
,
array
$options
)
{
public
function
preSchemaChange
(
IOutput
$output
,
\Closure
$schemaClosure
,
array
$options
)
{
}
}
/**
/**
* @param IOutput $output
* {@inheritDoc}
* @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
*
* @param array $options
* @return null|ISchemaWrapper
* @since 13.0.0
* @since 13.0.0
*/
*/
public
function
changeSchema
(
IOutput
$output
,
\Closure
$schemaClosure
,
array
$options
)
{
public
function
changeSchema
(
IOutput
$output
,
\Closure
$schemaClosure
,
array
$options
)
{
...
@@ -72,9 +70,8 @@ abstract class SimpleMigrationStep implements IMigrationStep {
...
@@ -72,9 +70,8 @@ abstract class SimpleMigrationStep implements IMigrationStep {
}
}
/**
/**
* @param IOutput $output
* {@inheritDoc}
* @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
*
* @param array $options
* @since 13.0.0
* @since 13.0.0
*/
*/
public
function
postSchemaChange
(
IOutput
$output
,
\Closure
$schemaClosure
,
array
$options
)
{
public
function
postSchemaChange
(
IOutput
$output
,
\Closure
$schemaClosure
,
array
$options
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment