Can't setup Instance in my local system Class 'DBInt' not found in/framework/model/fieldtypes/ForeignKey.php

I am trying to setup instance in my local then i got issue with Int with php version for that i tried upgrade the silverstripe version with composer but it’a not done successfully with below error
Problem 1
- silverstripe/framework 3.5.0 requires php >=5.3.3,<7 -> your PHP version (7.1.17) does not satisfy that requirement.
- silverstripe/framework 3.5.0 requires php >=5.3.3,<7 -> your PHP version (7.1.17) does not satisfy that requirement.
- Installation request for silverstripe/framework 3.5.0 -> satisfiable by silverstripe/framework[3.5.0].

and am getting new issue when i tried to upgrade.
Class ‘DBInt’ not found in/framework/model/fieldtypes/ForeignKey.php on line 15

Can any one please help on this issue

From the look of those errors, you are using version 3.5 of SilverStripe, and PHP version 7 - these two aren’t compatible I’m afraid.

You have two choices:

  1. Update your SilverStripe version to the latest 3.6, which is compatible with PHP7
  2. Use a lower version (5.6) of PHP to run the site.

To follow on from this, SilverStripe 3.6 supports PHP 5.3 to 7.1 and SilverStripe 3.7 supports PHP 7.2.