Skip to content

Make all php classes strict #17

@ChristophWurst

Description

@ChristophWurst

Description

If you look at code like https://github.com/nextcloud/server/blob/master/apps/dav/lib/DAV/CustomPropertiesBackend.php then you see that not all of our php code has declare(strict_types=1); yet.

It's time to clean this up, force PHP into strict mode and out of unpredictable type juggling. This might cause some errors, but they are valid and should be fixed.

Affected components

  • CalDAV and CardDAV backends
  • Calendar
  • Calendar Resource Management
  • Contacts
  • Contacts Interaction
  • Mail

To do

Search each app for those files (bash search magic?) and fix them. If the number of files touched is large, break the PRs done into one PR per namespace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. to developAccepted and waiting to be taken care ofoverviewOverview of other issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions